AW: block ip address for certain (server) context

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

 



We already tried something like:

   <Directory /my_jboss_app_context>
      Order Deny,Allow
      Deny from 10.1.13.25
   </Directory>

But this also didn't work - We got the impression that this directive only works with "real" directories and NOT with "contexts" (i.e. a path defined in uriworkermap.properties for mod_jk which corresponds to a jboss web application context). Is that correct?

Any further ideas?


Kind regards,
Markus


-----Ursprüngliche Nachricht-----
Von: Eric Covener [mailto:covener@xxxxxxxxx] 
Gesendet: Freitag, 20. Februar 2009 12:53
An: users@xxxxxxxxxxxxxxxx
Betreff: Re:  block ip address for certain (server) context

On Thu, Feb 19, 2009 at 10:20 AM, Reis Markus <Markus.Reis@xxxxxx> wrote:
> 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*] 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

Rewrite rules aren't inherited by virtual hosts.

You should use allow/deny for this.

--
Eric Covener
covener@xxxxxxxxx

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