httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reis Markus" <Markus.R...@abv.at>
Subject AW: [users@httpd] block ip address for certain (server) context
Date Fri, 20 Feb 2009 13:21:29 GMT
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@gmail.com] 
Gesendet: Freitag, 20. Februar 2009 12:53
An: users@httpd.apache.org
Betreff: Re: [users@httpd] block ip address for certain (server) context

On Thu, Feb 19, 2009 at 10:20 AM, Reis Markus <Markus.Reis@abv.at> 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@gmail.com

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message