Forum Moderators: phranque

Message Too Old, No Replies

dont log from folder with certain namescheme

log exclude

         

Johannes_N

11:36 am on Mar 23, 2005 (gmt 0)

10+ Year Member



Hi,
I am trying to configure the httpd.conf to exclude some items from the log. I like to exclude all items in folders with the name 'thumbnails' (regardless of path) and with the extension .jpg.
I am trying:
setEnvIf Request_URI "^/thumbnails\.jpg$" dontlog

and then:
Customlog logs/access.log combined env=!dontlog

It does not work.
I guess I am specifying the general path incorrectly.
Thankful for any advise, or any links to documentation of path specifications.
/Regards Johannes

jdMorgan

4:17 pm on Mar 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Johannes,

Welcome to WebmasterWorld!

(regardless of path)

Your regular-expressions pattern is path-specific, because it is start-anchored with a "^". So it applies only to the single file "thumbnails.jpg" in your Web root directory. Remove the start anchor to make it match any requested URI ending in "thumbnails.jpg".


SetEnvIf Request_URI [b]"/t[/b]humbnails\.jpg$" dontlog

Jim

Johannes_N

8:38 am on Mar 24, 2005 (gmt 0)

10+ Year Member



Thanks a lot! That makes sense.
/Johannes