Re: problems with apache2 and virtual hosting
Try removing the * from <VirtualHost *>
--
Robert Wolfe, MCP
robert@wolfe.mine.nu
--------- Original Message --------
From: Todd A. Jacobs <nospam@codegnome.org>
To: Debian User List <debian-user@lists.debian.org>
Subject: problems with apache2 and virtual hosting
Date: 25/09/05 00:16
> I'm running apache2/stable 2.0.54-5, and am not able to get virtual
> hosts to work correctly. All requests are being handled by the default
> virtual host, which is obviously not what I want.
>
> I've defined the following in apache2.conf:
>
> NameVirtualHost *
> <VirtualHost *>
> ServerName www.codegnome.org
> ServerAlias *.codegnome.org codegnome.org
> DocumentRoot /srv/www/codegnome/
> </VirtualHost>
> <VirtualHost *>
> ServerName www.mmipresentations.com
> ServerAlias mmipresentations.com
> DocumentRoot /srv/www/mmi/
> </VirtualHost>
>
> but all requests are falling back to the default virtual host without
> anything constructive in the log files (even with debug turned on):
>
> 12.155.166.58 - - [24/Sep/2005:19:50:30 -0700] "GET /
HTTP/1.1" 200 1317
> "http://www.mmipresentations.com/" "Mozilla/5.0 (X11;
U; Linux i686; en-US;
> rv:1.7.10) Gecko/20050825 Firefox/1.0.4 (Debian package
1.0.4-2sarge3)"
>
> The configuration looks okay to me. What could be causing it to fail
> back to the default virtual host? How do I debug this further?
>
> --
> Re-Interpreting Historic Miracles with SED #141: %s/water/wine/g
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>
>
>
__________________________________________________________________________
Message sent using UebiMiau v 2.7.8 [Debian GNU/Linux for Sparc64 'Etch']
Reply to: