On Sat, Sep 24, 2005 at 08:00:24PM -0700, Todd A. Jacobs wrote: > 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
Hi, I trust, you have restarted apache2 after the changes :) Do you have anything in the /etc/apache2/sites-enabled/ -directory? If you do, they might conflict with your directives in the apache2.conf. The include for the sites-enabled -directory is the last line in the apache2.conf, so if you prefer defining your sites in the apache2.conf I guess you can safely comment out that include line. Simo -- :r ~/.signature
signature.asc
Description: Digital signature