httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "D'Arcy J.M. Cain" <da...@Vex.Net>
Subject Re: [users@httpd] Can't restrict file access
Date Fri, 04 Apr 2014 14:54:57 GMT
On Fri, 4 Apr 2014 10:09:48 -0400
"D'Arcy J.M. Cain" <darcy@Vex.Net> wrote:
> <Directory ~ "^\.svn">
>     Require all denied
> </Directory>
> 
> This doesn't work.  I believe that this is because I have other
> Directory directives that override it.  Would the above work if
> changed Directory to a Location directive?  My impression from
> reading the docs is that Location is always rooted to the top level.
> Will it DTRT if I leave off the leading slash?

Pardon me for answering my own question but perhaps it will help the
next person doing a search with this issue.  Here is what worked for me:

RedirectMatch 404 /\.svn(/|$)

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:darcy@Vex.Net
VoIP: sip:darcy@Vex.Net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message