[thelist] Apache logging question

Benjamin kalos at carolina.rr.com
Thu Sep 19 16:08:02 CDT 2002


I'm running Apache 2.0 on a Windows box (for now) and am having a slight
problem with a CustomLog directive and was wondering if anyone could help
please.

############ begin dump ####################

SetEnvIf Request_URI "^/default.ida" attacks
SetEnvIf Request_URI "^/scripts/.." attacks
SetEnvIf Request_URI "^/c/winnt" attacks
SetEnvIf Request_URI "^/_mem_bin" attacks
SetEnvIf Request_URI "^/_vti_bin" attacks
SetEnvIf Request_URI "^/MSADC" attacks
SetEnvIf Request_URI "^/msadc" attacks
SetEnvIf Request_URI "^/d/winnt" attacks

SetEnvIf Request_URI "^/other" other

CustomLog logs/attacks.log common env=attacks
CustomLog logs/other.log common env=other
CustomLog logs/access.log common env=!attacks
CustomLog logs/access.log common env=!other

############ end dump ####################

As it stands, I am still logging any connections to the "other" directories
to the main log file which I don't wish to do.  I would like for them to
only be logged to the other.log file.  The same thing is happening to all
those entries destined for the attacks log as well.  Double entries.  I've
tried a few different regex's to no avail.

Any ideas/suggestions would be great.

Thanks,
-benjamin




More information about the thelist mailing list