On Wednesday 21 March 2007 09:44, Justin Hartman wrote: > Hi all > > In setting up apache 2.2.3 with virtual hosts I have experienced > something very strange which has never happened before. name-based or IP-based virtual hosts ?
> I have configured a vhost namely foo.com.conf with the path to the doc > root as /var/www/foo.com > > when i go to http://www.foo.com it works and serves the pages from > /var/www/foo.com however when i go to http://foo.com it no longer > serves the pages from the doc root but rather reverts back to the > default site and serves pages from /var/www/apache2-default > > Does anyone have any idea why using www. would serve pages from the > correct location but ommitting the www. serves them from the default > apache2 location? they're two different hosts names. If you are using name-based vhosts, try adding a serveralias (IIRC). Thomas Jollans
pgp7pKq2eLot0.pgp
Description: PGP signature