Re: Prevent logging based on username

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



jslive@xxxxxxxxx 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux