Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite: suppress "pass through" in logs?

         

bryndyment

6:06 pm on May 5, 2004 (gmt 0)

10+ Year Member



Is there a way for mod_rewrite to only log requests that it actually modifies? My log has jillions of entries like this:

pass through /my/logo.gif

bakedjake

6:10 pm on May 5, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You can fudge with the directive "RewriteLogLevel". It should be 0 by default (which is what you want), but it may have been accidentially specified somewhere.

bryndyment

6:24 pm on May 5, 2004 (gmt 0)

10+ Year Member



My understanding from the mod_rewrite docs is that a RewriteLogLevel of "0" suppresses all logging. I'd like to only see log entries for which mod_rewrite intervened (but not the passthroughs).

I assume this is a common thing to want to do, no?

RewriteLogLevel 0.5

(A little joke.)

bakedjake

6:32 pm on May 5, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Typically, I leave the level at zero, because (in my case) you can see what was rewritten from the access log.

What version of Apache are you on? 2.0.35 had some bugs with the rewrite module logging.

bryndyment

6:59 pm on May 5, 2004 (gmt 0)

10+ Year Member



I'm using Apache 1.3.29. Seems strange to me that of nine logging levels, there isn't one that only shows events where mod_rewrite intervened.

Thanks for the info...