Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jun 072010
 

How to deny access for Subversion (svn) related files in Apache?

Answer:

To deny access for Subversion (svn) related files under Apache, add the following lines to the Apache configuration (httpd.conf)

<DirectoryMatch .*\.svn/.*>
    Deny From All
</DirectoryMatch>

And restart Apache to take effect.

# apachectl -k graceful

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>