httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <>
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

(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

Alexei Kosut <>      The Apache HTTP Server

View raw message