Red Hat Bugzilla – Bug 42410
access.conf is not ignored if it contains valid/invalid directives
Last modified: 2007-04-18 12:33:26 EDT
Description of Problem:
During the process of trouble shooting a virtual hosting problem I put access data in access.conf and
uncommented the location in /etc/httpd/conf/httpd.conf. When the test failed I re-commented out
access. conf and resatarted apache. It still read the data in the access.conf
Do something like I did.
Steps to Reproduce:
1. leave access.conf commented out in httpd.conf
2. enter any access directive in access.conf (e.g virtual hosting directives or user access)
Best way is to put something invalid to see it cough up an error message.
3. restart httpd
access.conf is read despite being commented out
directives in access.conf should be ignore as access.conf is commented out
I was originally researching why the virtual hosting stuff wasnt working. I have followed the documented
stuff in the apache manual and even downloaded the full blown version of linuxconf to set this up.
Both of us cant be wrong. But I better bugzilla this separately.
This is the documented default behavior of Apache (see
/var/www/html/manual/mod/core.html#accessconfig for more detail).
Essentially, if no access configuration file is specified, it will read and
parse access.conf. The default access.conf includes a note that it should not
be modified, and httpd.conf includes a note that disabling this behavior
requires setting the paths for these files to /dev/null.
Tagging as not a bug.