httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Carlsson <rol...@aqmlabs.se>
Subject [users@httpd] Location question
Date Tue, 04 Apr 2006 06:55:10 GMT
Hi!

I feel quite stupied to have to ask this question but since I don't find 
any example of how to do this and my own attempts have failed.....

I want to stop all requests to a url on the form: 
http://myserver/*/webservice/*
if they are not from 192.168.*

I have tried with the following code in my virtual host-configuration.

<Location "/*/webservice">
    Order Deny,Allow
    Allow from 192.168.10.100
    Deny from All
</Location>

This works but I need the wildcard since i don't know the exact location 
and I will not know this in the future.
<Location "/afile/webservice">
    Order Deny,Allow
    Allow from 192.168.10.100
    Deny from All
</Location>

Is there a solution to my problem or do I have to rethink my application?

Thanks in advance
Roland Carlsson

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