Simplification of Apache+Subversion multidirectory configuration
- by Reinderien
Hello. With your excellent advice, I've finally pieced together this functional Apache configuration for my Subversion service:
# Macro to make an SVN repo set
<Macro SVNDir $user>
<Location /svn/$user>
# Mandatory HTTPS, log in using Active Domain
SSLRequireSSL
AuthPAM_Enabled on
AuthType Basic
AuthBasicAuthoritative off
AuthName "PAM"
Require user AD\$user
# Needed to squash spurious error messages
AuthUserFile /dev/null
# SVN stuff
DAV svn
SVNParentPath /var/www/svn/$user
</Location>
</Macro>
# List of accounts
Use SVNDir user1
Use SVNDir user2
# ...
It works, but it isn't optimal. I'd like to somehow redo this so that it can just scan the list of directories in /var/www/svn and automatically do this for each of them. Is that possible?
Thanks.