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: AW: [users@httpd] block ip address for certain (server) context
Date Mon, 23 Feb 2009 08:09:16 GMT
We've tried Location-Directives before, but without any success ...

... Following your advice I tried it again and found this one:
<Location ~ "/my_jboss_app_context.*">
  Order Deny,Allow
  Deny from all
  Allow from 10.1.13.25
</Location>

This Location-Directive based on a regular expression works!

Could you explain to me why this Location-Directive does NOT work:
<Location /my_jboss_app_context">
  Order Deny,Allow
  Deny from all
  Allow from 10.1.13.25
</Location>

Anyway, many thanks ...


-----Urspr√ľngliche Nachricht-----
Von: Tom Evans [mailto:tevans.uk@googlemail.com] 
Gesendet: Freitag, 20. Februar 2009 15:07
An: users@httpd.apache.org
Betreff: Re: AW: [users@httpd] block ip address for certain (server) context

On Fri, 2009-02-20 at 14:21 +0100, Reis Markus wrote:
> 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
> 
<Directory> is for physical on disk directories, and the path referenced is a file system
path <Location> is for URI locations, and the path referenced is the URI.

<Directory /my_jboss_app_context> will only match files that are loaded from the physical
on disk directory /my_jboss_app_context/

Also, :set tw=78, because your emails are hideously formatted..


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