httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@nueva.pvt.k12.ca.us>
Subject Re: Stopping htaccess files from being seen
Date Sat, 05 Oct 1996 03:41:35 GMT
On Thu, 3 Oct 1996, Michael Smith wrote:

> It seems like a really obvious question but how do I stop people from
> seeing htaccess files in the docs directory (now that I'm using
> mod_rewrite I have htaccess files here).  I guess I could rewrite them
> to somewhere else but is there a global solution to stop them being
> viewed?

<Files */.htaccess>
deny from all
allow from none
</Files>

(in 1.2 only, of course. In 1.1 you can use <Location> to the same
effect, but that's not its intended purpose. In 1.0 you can't do it at
all.)

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


Mime
View raw message