[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Weird apache2 issue



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

Attachment: pgp_bXudaPUL1.pgp
Description: PGP signature


Reply to: