Apache Log

bankbass

New member
Joined
Apr 18, 2008
Messages
4
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.
 
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>.
 
Back
Top