httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hilco Wijbenga <>
Subject [users@httpd] [mod_rewrite] How to *not* log certain rules?
Date Tue, 23 Aug 2011 18:30:35 GMT
Hi all,

I have Vuze (bittorrent) running which sends out /announce and /scrape
requests every 10 seconds or so. I managed to avoid logging them in
the regular logs using

SetEnvIf Request_URI "^/announce|/scrape$" do-not-log
CustomLog /var/log/apache2/access.log common env=!do-not-log

 but they still show up in my rewrite.log.

I added

RewriteRule ^/announce|/scrape$ - [L]

which at least minimizes their impact but they're still being logged.
My first thought was that there might be a "do-not-log" flag but that
does not appear to be the case.

How can I ignore these requests? Or even entirely drop them as they
always receive 404s anyway.

(I have, of course, tried to stop Vuze from sending these requests [to
localhost] but, obviously, I was unsuccessful.)


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message