Re: Prevent logging based on username

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

 



> >
> > I tried that, but I wanted to achieve this based on username. I never
> > thought about IP address. Thanks. So, is there no way to do it based 
on
> > username?
> 
> Username can mean any number of things. What specifically do you mean?
> 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.)


Thanks, exactly what I was looking for. I'll test it and deploy :)

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