Re: Can't restrict file access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 4 Apr 2014 10:09:48 -0400
"D'Arcy J.M. Cain" <darcy@xxxxxxx> 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@xxxxxxx
VoIP: sip:darcy@xxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux