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.

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

  1. Turn on expire headers in Apache
  2. Apache restart explained
  3. Enable Server Side Includes in Apache
  4. Turn off directory listing in Apache
  5. Limit Apache only listen to IPv4 address

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>