View Full Version : Apache Log
bankbass
04-28-2008, 10:06 AM
Apache isn't log anything and bandwidth for apache is 0.
in apache log, i found only
combined
combined
combined
combined
combined
combined
combined
combined
any idea?
(FreeBSD 6.3 Apache2.0 w/ PHP5)
PS : sorry for my bad english.
bankbass
04-28-2008, 05:52 PM
Problem was solved. By editing httpd.conf
<IfModule log_config_module>
#replace %b with %O for more accurate logging
<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" c
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%O" bytes
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I
</IfModule>
CustomLog /var/log/httpd/access_log common
</IfModule>
to be
#<IfModule log_config_module>
#replace %b with %O for more accurate logging
#<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" c
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%O" bytes
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I
#</IfModule>
CustomLog /var/log/httpd/access_log common
#</IfModule>
-----------------------
I wonder why my apache can't check if the module was loaded or not.
I have to force them to use the config by bypassing <ifModule>.
nobaloney
04-28-2008, 09:56 PM
Is the log_config_module loaded?
Jeff
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.