httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miha Vitorovic <mvitoro...@nil.si>
Subject Re: [users@httpd] Prevent logging based on username
Date Fri, 13 Apr 2007 13:34:36 GMT
jslive@gmail.com wrote on 12.04.2007 21:08:24:

> HTTP Basic/Digest auth user? If so, you would need to do some funky
> stuff because SetEnvIf can't access REMOTE_USER:
> 
> RewriteEngine On
> RewiteCond %{LA-U:REMOTE_USER} ^theuser$
> RewriteRule .* - [E=theuser:1]
> CustomLog ... env=!theuser
> 
> (Not tested, but it should be close.)

Works exactly as written, except for a little typo (RewriteCond). Thanks 
again.

Br,
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message