Re: [users@httpd] mod_access and Client IP's from Load Balancers

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

 



On 4/24/06, Jeff Nokes <jeff_nokes@xxxxxxxxx> wrote:
>
>
>       <LocationMatch "^/+(marketing/report.*)$">
>         order deny,allow
>         deny from all
>         allow from  10  172.16  192.168
>       </LocationMatch>

mod_rewrite or mod_setenvif can do access control based on arbitrary
headers.  So assuming you have an X-Remote-IP header, you could do
SetEnvIf X-Remote-IP ^10\..* good-guy
SetEnvIf X-Remote-IP ^172\.16\..* good-guy
SetEnvIf X-Remote-IP ^192\.168\..* good-guy
and then add
Allow from env=good-guy
to the above block.

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