User Tools

Site Tools


scm:svn:apache_svn

Serving svn working copies trough Apache

Prevent .svn folders from being accessed

Include the following rule in your apache httpd.conf:

#
# prevent .svn directories from being viewed by web clients
#
<directorymatch "^/.*/\.svn/">
  Order deny,allow
  Deny from all
</directorymatch>

or create a .htaccess file in your web project

#
# prevent .svn directories from being viewed by web clients
#
RewriteRule ^(.*/)?\.svn/ - [F,L]
ErrorDocument 403 "Access Forbidden"
/srv/wiki.niwos.com/data/pages/scm/svn/apache_svn.txt · Last modified: 2009/08/15 12:14 (external edit)