SVN: How to commit .htaccess files into a repository?

One common issue when using Subversion repositories for web-development is –
that one just can’t commit .htaccess files, because Apache’s global configuration prevents it.

In order to circumvent this annoying behavior it’s required to override the global http.conf
by defining an individual virtual host configuration for the repository:

<Files ~ "^\.ht">
   Order allow,deny
   Allow from all
   Satisfy All

If required, you may specify another access-file for that vhost.
Of course it’s required to secure if from direct access.

AccessFileName .svnaccess
<Files ~ "^\.svnaccess">
   Order deny,allow
   Deny from all

Apache Documentation Quicklinks:

SVN clients:

One Response to “SVN: How to commit .htaccess files into a repository?”

  1. I like your writing style really enjoying this website. “Absolute faith corrupts as absolutely as absolute power.” by Eric Hoffer.