block ip address for certain (server) context

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

 



Title: block ip address for certain (server) context

Hi,


We want to block certain ip addresses from accessing a certain (server) context - e.g. ip address 10.1.13.25 shouldn't be able to access (server) context (not a directory) 'myapplication'.

[*NOTE*] We use mod_jk in order to "forward" certain contexts to a JBoss AS instance.

Therefore we added the following lines to Apache's httpd.conf (we simply adapted some useful examples from the mod_rewrite documentation):

   LoadModule rewrite_module modules/mod_rewrite.so
   RewriteEngine on
   RewriteCond %{REMOTE_ADDR} ^10\.1\.13\.25
   RewriteRule .*  - [F]

This rule is even more restrictive - it should restrict access to all resources served from our Apache (and/or the JBoss behind it) for clients with ip address 10.1.13.25.

Unfortunately this rule has no effect - all resources are available for ip 10.1.13.25 - Why?

[*NOTE*] Server: Apache/2.2.9 (Unix) mod_jk/1.2.26 mod_ssl/2.2.9 OpenSSL/0.9.8d
[*NOTE*] The above configuration represents the last statements in httpd.conf - the mod_jk module is loaded before


Many thanks for your help,
Kind regards,
Markus


[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