Re: [users@httpd] SetEnvIf only if 2 regex match?

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

 



that's exactly it, thanks a lot Joshua

Joshua Slive a écrit :

On 11/2/05, gregory duchesnes <gregory@xxxxxxxxxxxxx> wrote:
thanks for your help but this is the exact opposite of what i wan't to do.

Here you accept anyone from 192.168.0.2 except Mozilla.
I wan't to allow only Mozilla from this IP, and the problem is quite
different, since i need to deny everyone except mozilla...

Then you need something like

SetEnvIf Remote_Addr ^192\.168\.0\.2$ welcome moz=0
SetEnvIf User-Agent "^Mozilla" moz=1
SetEnvIf moz 0 !welcome
Order Allow,Deny
Allow from env=welcome

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



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