Quantcast
Viewing latest article 1
Browse Latest Browse All 4

Deny access to .svn directories with Apache2 / lighttpd / nginx

If you’re using SVN to control your web application, like I do, your certainly need to deny access to .svn sub-directories.

With Apache2

<DirectoryMatch "^/.*/.svn/">
  Order allow,deny
  Deny from all
</DirectoryMatch>

With lighttpd

$HTTP["url"] =~ "/.svn/" {
  url.access-deny = ( "" )
}

With nginx

location ~ /.svn/ {
  deny all;
}

Viewing latest article 1
Browse Latest Browse All 4

Trending Articles