httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hytham Shehab" <hytham...@menanet.net>
Subject [users@httpd] vhost, again and agina :) - shreding my shoulders
Date Tue, 27 Aug 2002 11:19:02 GMT
hi folks,
    in a few words:
#httpd.conf
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
    ServerAdmin webmaster@server-1.com
    ServerName www.server-1.com
    ServerAlias server-1
    ServerPath www.server-1.com
    DocumentRoot "c:/www/htdocs/server-1.com/"
    CustomLog logs/server-1.com-access_log common
    ErrorLog logs/server-1.com-error_log
    ScriptAlias /cgi-bin/ "c:/www/htdocs/server-1.com/cgi-bin/"
</VirtualHost>
<VirtualHost 127.0.0.1>
    ServerAdmin webmaster@server-2.com
    ServerName www.server-2.com
    ServerAlias server-2
    ServerPath www.server-2.com
    DocumentRoot "c:/www/htdocs/server-2.com/"
    ErrorLog logs/server-2.com-error_log
    CustomLog logs/server-2.com-access_log common
    ScriptAlias /cgi-bin/ "c:/www/htdocs/server-2.com/cgi-bin/"
</VirtualHost>
#hosts
127.0.0.1    www.server-1.com
127.0.0.1    www.server-2.com
so far so good, then i run IE 5.5 and type www.server-1.com, it goes to
server-1, if i type www.server-2.com, it goes to server-2, just fine, - i
know that some of you now are thinkg that i just have a plenty of time, no
guys, here is the problem -, when i do this:
telnet www.server-1.com 80, it goes to server-1
telnet www.server-2.com 80, it goes to *server-1*, why????
now, i flip the sequence in httpd.conf of <virtualhost>, server-2 becomes
available, while server-1 won't be accessed, unless from descent browser
like IE, NS, Opera, etc.
thx for reading all these.
thanks for gimme any idea.

--
Hytham Shehab


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message