httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Gollschewsky <dweb3softw...@darkgate.net>
Subject [users@httpd] server reverts to global config briefly then back to vhost
Date Thu, 29 Apr 2004 13:24:17 GMT
Hi,

We are experiencing some very strange behaviour from apache on our
servers.  I'm running 1.3.29 on SuSE SLES Linux.  Our servers run
mutiple vhosts (from 5 up to 200).  Most are name-based virtual
hosts, but some are IP based (the SSL ones and a few others).

All our sites are VirtualHosts, the global "Root" site is not used
to serve any content at all.  Due to this, we set its DocumentRoot
to be "/var/www/default" which is a directory we deny access to.  No
VirtualHost is ever configured without a DocumentRoot, so no request
should ever hit this directory.

The problem is:  every now and then, a VirtualHost will send a client
request through to this directory!  Its almost as if this apache vhost
"temporarily" forgets where its DocumentRoot is, and reverts back to
the global one.  Then immediately after, it remembers and all is back to
normal.  But this breaks our client's session and makes them very unhappy.

Messages in the error_log for our vhosts even say /var/www/default, which
blatantly is not the DocumentRoot for that virtualhost (it is always
set to /vhosts/[something]/htdocs).  e.g:

(chroot) root@xxx:/ # grep 'client denied' /vhosts/dw02456/logs/www/error_log 
[Thu Apr 29 03:57:14 2004] [error] [client 217.60.90.7] client denied by server
configuration: /var/www/default
[Thu Apr 29 04:38:15 2004] [error] [client 222.150.113.180] client denied by
server configuration: /var/www/default
[Thu Apr 29 05:43:57 2004] [error] [client 67.66.219.252] client denied by
server configuration: /var/www/default
[Thu Apr 29 10:20:12 2004] [error] [client 219.165.155.38] client denied by
server configuration: /var/www/default
(chroot) root@xxx:/ # grep 'client denied' /vhosts/dx00005/logs/www/error_log 
[Thu Apr 29 04:41:37 2004] [error] [client 82.48.141.123] client denied by
server configuration: /var/www/default

Yet, the global error_log says nothing:

(chroot) root@xxx:/ # grep 'client denied' /var/log/www/error_log             
(chroot) root@xxx:/ # 

I can't find out what causes this to happen.  Note no gracefuls have happened
or any kind of restarts.  I'm completely at a loss.

Does apache occasionally forget where a DocumentRoot for a vhost should
be?

Any help will be appreciated.  Thanks and regards,

Tim.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message