httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Name-based Virtual Hosting Problem
Date Mon, 13 Jan 2003 14:09:29 GMT
Some ideas:

- Is your browser using HTTP/1.1? It should be unless it is very
old/weird... HTTP/1.0 does not support the Host header which is required
for NBVH.

- Check your HTML: are all the links relative (you don't have any with
"http:" at the front - maybe leading to an old name with the same IP

- Do you have "UseCanonicalName on" anywhwere? (This is the default
setting). This makes apache form self-referential URLs using the
ServerName which would cause problems if either of the above were wrong
- Try setting "UseCanonicalName off" globally to see what effect it has.

- Any caching proxy between your browser and server? Also, the browser
itself (esp. IE) can be very persistent. Kill all instances and restart
before testing major realignments of the sites.


Owen Boyle


>-----Original Message-----
>From: Mark McCulligh []
>Sent: Montag, 13. Januar 2003 14:51
>Subject: [users@httpd] Name-based Virtual Hosting Problem
>I have been trying to get name-based Virtual Hosting working 
>but I have an
>interesting problem.
>I have setup my conf something like this:
>   ServerName 
>   DocumentRoot         /usr/isp/site1/www-site1
>   DirectoryIndex       index.php index.html index.htm
>   ServerName 
>   DocumentRoot         /usr/isp/site2/www-site2
>   DirectoryIndex       index.php index.html index.htm
>   ServerName 
>   DocumentRoot         /usr/isp/site3/www-site3
>   DirectoryIndex       index.php index.html index.htm
>The IP-based hosting works fine, but the two sites that share IP
> don't work right.  If you are on 
> you will
>sometime get pages from  Example: If you keep hiting the
>refresh button on the index page you not know what page yoo will get,
>sometime the index page from site2 and sometimes from site1.  
>Also a couple
>times when I was on I get pages from site2 instead.
>It is like apache is randoming picking from the two sites.
>I am using apache 1.3.27
>Does anyone have any ideas?
>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:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

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