You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/04/01 04:22:04 UTC

DO NOT REPLY [Bug 7649] New: - virtual host

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7649>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7649

virtual host

           Summary: virtual host
           Product: Apache httpd-1.3
           Version: 1.3.23
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: cn_liqy@21cn.com


I have configured a conf file as below:

ServerType standalone
ServerRoot "e:\cvsroot\apache"
PidFile logs\httpd.pid
ScoreBoardFile logs\apache_status
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxRequestsPerChild 0
ThreadsPerChild 1
Port 80
ServerAdmin bitspirit@163.net
ServerName www.liqy.com
DocumentRoot "E:/webroot/html"

ScriptAlias /cgi-bin/ "E:/webroot/cgi-bin/"

NameVirtualHost 192.168.100.52

<VirtualHost 192.168.100.52>
	ServerName www.liqy1.com
	DocumentRoot "E:/webroot/html/html"
</VirtualHost>

<VirtualHost 192.168.100.52>
	ServerName www.liqy2.com
	DocumentRoot "E:/webroot/html/liqy"
</VirtualHost>

And configured win2000's hosts as below:

192.168.100.52 www.liqy.com
192.168.100.52 www.liqy1.com
192.168.100.52 www.liqy2.com

I visite the virtual host "www.liqy.com", but get the virtual 
host "www.liqy1.com". I think that Apache during matching IP address 
selects "www.liqy1.com" but during matching request header(HOST field) does not 
select "www.liqy.com".

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org