Re: Prevent logging based on username

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

 



On 4/12/07, Miha Vitorovic <mvitorovic@xxxxxx> wrote:
jslive@xxxxxxxxx wrote on 12.04.2007 19:49:38:

> On 4/12/07, Miha Vitorovic <mvitorovic@xxxxxx> wrote:
> >
> > I have httpd 2.0.58 on Windows, and I like to exclude a user from the
> > access log. I tried every module looking half useful from the task,
but
> > nothing worked.
> >
> >
>
> If the IP address of the client is static, you can follow the example
here:
> http://httpd.apache.org/docs/2.2/logs.html#conditional
>

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.)

Joshua.

---------------------------------------------------------------------
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