https://issues.apache.org/bugzilla/show_bug.cgi?id=48710
Summary: Configured DocumentRoot ignored by compiled variable
Product: Apache httpd-2
Version: 2.2.14
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi,
I would like to open a Bug report for a 2.2.14 Apache2 installation.
Tried to search for the problem here, but couldn't find anything which looks
like my issue.
I got several vhosts configured on my machine. They were all working fine until
I updated to 2.2.14 (Debian). For some unknown (for me) reason, one of the
vhosts is not working anymore in the way, that it will not use the DocumentRoot
configured within the vhosts configuration file, and tried to look for the
htdocs in the compiled default location, which is /etc/apache2/htdocs
[Tue Feb 09 10:59:42 2010] [error] [client x.x.x.x] File does not exist:
/etc/apache2/htdocs
Where this is the vhost config:
<Directory /var/www/derchris.eu/htdocs/>
AddHandler fcgid-script .php
FCGIWrapper /usr/lib/cgi-bin/php5 .php
</Directory>
<VirtualHost derchris.eu:80>
ServerAdmin [email protected]
ServerName derchris.eu
ServerAlias www.derchris.eu derchris.net *.derchris.eu *.derchris.net
DocumentRoot /var/www/derchris.eu/htdocs/
<Directory /var/www/derchris.eu/htdocs/>
Options ExecCGI Indexes +FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
#RedirectMatch ^/$ /redirect.html
</Directory>
ScriptAlias /cgi-bin/ /var/www/derchris.eu/cgi-bin/
<Directory "/var/www/derchris.eu/cgi-bin/">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
RewriteLog /var/www/derchris.eu/logs/apache2/rewrite.log
RewriteLogLevel 6
ErrorLog /var/www/derchris.eu/logs/apache2/error.log
CustomLog /var/www/derchris.eu/logs/apache2/access.log combined
LogLevel warn
ServerSignature On
</VirtualHost>
<VirtualHost derchris.eu:443>
ServerAdmin [email protected]
ServerName derchris.eu
ServerAlias www.derchris.eu derchris.net *.derchris.eu *.derchris.net
DocumentRoot /var/www/derchris.eu/htdocs/
<Directory /var/www/derchris.eu/htdocs/>
Options ExecCGI Indexes +FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
#RedirectMatch ^/$ /redirect.html
</Directory>
ScriptAlias /cgi-bin/ /var/www/derchris.eu/cgi-bin/
<Directory "/var/www/derchris.eu/cgi-bin/">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
RewriteLog /var/www/derchris.eu/logs/apache2/rewrite.log
RewriteLogLevel 6
ErrorLog /var/www/derchris.eu/logs/apache2/error_ssl.log
CustomLog /var/www/derchris.eu/logs/apache2/access_ssl.log combined
LogLevel warn
ServerSignature On
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /etc/apache2/cert/derchris.eu/ssl.crt
SSLCertificateKeyFile /etc/apache2/cert/derchris.eu/ssl.key
SSLCertificateChainFile
/etc/apache2/cert/derchris.eu/sub.class2.server.ca.pem
SSLCACertificateFile /etc/apache2/cert/derchris.eu/ca.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog /var/www/derchris.eu/logs/apache2/ssl.log "%t %h
%{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
All vhosts are using the same structure, and only differ in the FS location.
I don't see any error with the other vhosts, but just this one.
As you can see, DocumentRoot is configured within the vhost config, but Apache
ignores this, and tries to look for /etc/apache2/htdocs
Here is a apache2ctl -V
Server version: Apache/2.2.14 (Debian)
Server built: Feb 7 2010 17:24:02
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.4.2, APR-Util 1.3.9
Compiled using: APR 1.4.2, APR-Util 1.3.9
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf"
Please let me know if you think this is a bug, and what else you would need
from me in order to investigate this.
Kind regards,
Christian
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]