[thelist] question abt apache web server log
Benjamin
kalos at carolina.rr.com
Sat Sep 21 11:52:01 CDT 2002
Find the section of your httpd.conf file and add something similar to the
following:
SetEnvIf Request_URI "^/.cgi" log
SetEnvIf Request_URI "^/.htm" log # this will catch both htm and html
SetEnvIf Request_URI "^/.php" log
SetEnvIf Request_URI "^/.asp" log
CustomLog logs/access.log common env=log
The above is for a windows install (access.log) but the SetEnvIf syntax is
the same regardless of OS.
Please note however that this will also limit your ability to see if you
are being scanned for nimda/code red. You may want to run two access logs
(the name for the second could be whatever you wish) and have Apache log
everything to the second and only "pages" to the main one. To do that just
add the following line under the code above:
CustomLog logs/second.log common env!=log
-benjamin
More information about the thelist
mailing list