Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 184448

Summary: net-www/apache 2.2.4-r7 - vhosts.d/default_vhost.include always loads
Product: Gentoo Linux Reporter: Mark Keisler <grimm26>
Component: New packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mark Keisler 2007-07-06 21:48:34 UTC
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.



Reproducible: Always

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

Actual Results:  
# /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


Expected Results:  
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
00_default_vhost.conf?
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2007-07-07 07:47:29 UTC
It has just moved from httpd.conf to an include file, because the default virtual hosts use the same configs, but inside <VirtualHost>
Comment 2 Mark Keisler 2007-07-08 03:26:22 UTC
(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.
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2007-07-08 07:36:49 UTC
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.