SVN Apache config files
<VirtualHost {ip}:80>
DocumentRoot {/var/svn}
ServerName {svn.domain.tld}
ServerAdmin [email protected]
ErrorLog /var/log/apache2/error_log
CustomLog /var/log/apache2/access_log combined
<IfModule mod_setenvif.c>
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions inherit
</IfModule>
<Directory "/var/svn">
AllowOverride All
Options All
Order allow,deny
Allow from {10.0.0.0/255.0.0.0 192.168.13.0/255.255.255.0}
</Directory>
</VirtualHost>
cat /etc/apache2/modules.d/47_mod_dav_svn.conf
<IfDefine SVN>
<IfModule !mod_dav_svn.c>
LoadModule dav_svn_module modules/mod_dav_svn.so
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions inherit
</IfModule>
<Location /svn/>
DAV svn
SVNParentPath /var/svn
SVNListParentPath on
RedirectMatch ^(/svn)$ $1/
SVNAutoVersioning On
Options Indexes FollowSymLinks
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /var/svn/conf/svnusers
Require valid-user
AuthzSVNAccessFile /var/svn/conf/svnpolicy
SVNIndexXSLT /svnindex.xsl
SetOutputFilter xslt
AddDefaultCharset utf-8
order allow,deny
allow from 10.0.0.0/255.0.0.0 193.228.152.0/255.255.255.0
</Location>
<IfDefine SVN_AUTHZ>
<IfModule !mod_authz_svn.c>
LoadModule authz_svn_module modules/mod_authz_svn.so
</IfModule>
</IfDefine>
</IfDefine>
Login
0 Comments
Oldest