httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@organic.com>
Subject Re: trick to..
Date Tue, 20 Aug 1996 18:53:18 GMT
On Tue, 20 Aug 1996, Rob Hartill wrote:

> How can I deny access to everything except for 1 URL.
> I have <Location /> being used to deny access to the entire
> site for runaway robots but can't then serve them a custom 403
> message to explain to humans at that site why they're banned.
> 
> Is there a trick to do this?

Well, I'm not sure exactly how your "deny access" thing works, but
Location segments override each other. So you could do:

<Location />
deny from whatever
</Location>

<Location /dont-deny>
deny from none
</Location>

That should work.

-- Alexei Kosut <akosut@organic.com>            The Apache HTTP Server 
   http://www.nueva.pvt.k12.ca.us/~akosut/      http://www.apache.org/


Mime
View raw message