Red Hat Bugzilla – Bug 27931
logging directives incorrect
Last modified: 2007-04-18 12:31:30 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.1-tcf i686)
The tranfer log is not written to the same place that appears in the GUI
and the default transfer log location is not written to httpd.conf.
Steps to Reproduce:
1.Use apacheconf to configure transfer log file
2.Look at the httpd.conf file
3.Access the server
4.View the location of the transfer log file to see where it is putting it
Actual Results: In apacheconf under Virtual Hosts=>Edit Default Settings,
it says the transfer log should be written to logs/access_log (This should
be relative to the ServerRoot so this translates to
/etc/httpd/logs/access_log.). However, there is not TransferLog directive
outside the Virtual Host directives. There is "CustomLog
/var/log/httpd/access_log common" set as the default. I then set the
default Virtual Host transfer log file to /etc/httpd/logs/access_log-test,
restarted httpd, accessed the server, and the transfer was written to
/etc/httpd/logs/access_log-test AND /var/log/httpd/access_log-test. The
TransferLog directive under the default virtual host was written correctly.
Expected Results: /var/log/httpd/access_log should not be the default log
file location. It should be /etc/httpd/logs/access_log by default. ErrorLog
should not be set to /var/log/httpd/error_log. It should be
/etc/httpd/logs/error_log by default (unless reconfigured in the GUI).
Using latest version out of CVS.
My bad - /etc/httpd/logs is a symbolic link to /var/log/httpd. :-) Sorry about