Name based virtual hosting only works for HTTP 1.1. Most clients are
HTTP 1.0. Use IP address based virtual hosting if you can.
HTH,
Jeffrey
Quoting JW
Hey,
I've hit a weird one. Most likely I'm just overlooking something but I don't know what, hopefully some one can point it out to me.
I have a server running Apache, all setup in the main server section. Just now I tried to add a name based virtual host and the NBVH seems to be "taking over" the main server config. It's pretty wierd. In other words, when I request the original _non_ virtual host's URL, I'm getting the pages for the NBVH instead.
After reading http://httpd.apache.org/docs/vhosts/examples.html#default it seems to me that this is not right:
"Using such a default vhost with a wildcard port effectively prevents any request going to the main server."
Presumign that "main server" does _not_ mean main _virtual_ server, this sounds to me like as long as I don't have a "_default_:*" NBVH set, any requests send to the server that don't match a NBVH should go to the main server config. But that is not happening.
If all of the above is confusing, just think of it this way: the NBVH is hijacking all requests going to the server. How do I get the NBVH to not interfere with the main server configuration?
Do I have set up a NBVH for the main server config too? I know I _can_, but do I _have_ to?
Here's the sum of everything I changed when I added the NBVH:
BindAddress * NameVirtualHost 216.205.93.46:80
ServerAdmin joe@claborn.net DocumentRoot /home/webhome/clickpatrol DirectoryIndex cpeindex.php ServerName www.clickpatroleurope.com ServerAlias clickpatroleurope.com ErrorLog logs/clickpatroleurope.com-error_log CustomLog logs/clickpatroleurope.com-access_log combined </VirtualHost> If I comment those things out everything goes back to normal for the main server.
Any ideas how to get a regular server and NBVH to peacefully co-exist?
Jonathan Wilson System Administrator
Cedar Creek Software http://www.cedarcreeksoftware.com Central Texas IT http://www.centraltexasit.com
-- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck