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

problems with apache2 and virtual hosting



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



Reply to: