httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zac Stevens <>
Subject Re: [users@httpd] vhost, again and agina :) - shreding my shoulders
Date Tue, 27 Aug 2002 11:29:02 GMT
On Tue, Aug 27, 2002 at 02:19:02PM +0300, Hytham Shehab wrote:
> so far so good, then i run IE 5.5 and type, it goes to
> server-1, if i type, 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 80, it goes to server-1
> telnet 80, it goes to *server-1*, why????

How were you testing this?  I suspect you may not be using the Host:
header, which is what Apache uses to determine the VirtualHost to give the
request to.  Telnet itself works on a lower layer than VirtualHosts exist

try the following:

telnet 80
GET / HTTP/1.1

telnet 80
GET / HTTP/1.1

You should get responses from the Virtualhosts whose ServerName/ServerAlias
matches the Host: header.

I don't believe the syntax you used for ServerPath is correct, but if for
example you had the following in your Server1 vhost

ServerPath /server1/

you could also modify the URI you're requesting to begin with /server1/


telnet 80
GET /server1/ HTTP/1.0

should give you the root of server-1.



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message