Posts Tagged ‘HTTP500’

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

Sunday, December 18th, 2011

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: