In looking at the DEFAULT_VHOST config and I can opt not to put -D DEFAULT_VHOST
which disables loading of vhosts.d/00_default_vhost.conf but the
vhosts.d/default_vhost.include is always loaded from httpd.conf no matter what. This has settings for the localhost DocumentRoot and stuff that I will not
be using since I have disabled DEFAULT_VHOST.
Steps to Reproduce:
1. remove -D DEFAULT_VHOST and -D SSL_DEFAULT_VHOST from /etc/conf.d/apache
2. mv /var/www/localhost /var/www/localhost-
3. start apache
# /etc/init.d/apache2 start
* Caching service dependencies ... [ ok ]
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 20 of /etc/apache2/vhosts.d/default_vhost.include:
DocumentRoot must be a directory
successful apache start
Perhaps it is a mistake that default_vhost.include is still Included
from httpd.conf since it is also included from inside of
It has just moved from httpd.conf to an include file, because the default virtual hosts use the same configs, but inside <VirtualHost>
(In reply to comment #1)
> It has just moved from httpd.conf to an include file, because the default
> virtual hosts use the same configs, but inside <VirtualHost>
OK, I agree that vhosts.d/default_vhost.include should be sourced by vhosts.d/00_default_vhost.conf, but it should not be sourced by httpd.conf as it is currently.
there was _NO_ change in functionality. see http://sources.gentoo.org/viewcvs.py/apache/trunk/dist/2.2/conf/httpd.conf?r1=155&r2=160
it has just moved.