I wrote .htaccess in file dir/subdir to don't log URI requests in this particular directory. The .htaccess is actually executed by apache (if i write deny from , it works), but if the file contains only this rule:

   SetEnvIf Request_URI "^dir/subdir" dontlog

Don't work. AllowOverride All and mod_rewrite are enabled. What can be the problem?

Sorry for my bad english.

link|improve this question

67% accept rate
feedback

1 Answer

up vote 2 down vote accepted

You should have this in your htaccess :

SetEnvIf Request_URI "^/dir/subdir(.*)$" dontlog

And something like this is you apache config :

CustomLog /var/log/apache2/access.log combined env=!dontlog
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.