安装:python bin/install.py /usr/local/submin
初始化:/usr/local/submin/bin/submin-admin create default
修改: /etc/apache2/mods-available/dav_svn.conf
如下:
WSGIScriptAlias /submin /usr/local/submin/share/submin/www/submin.wsgi
AliasMatch ^/submin/css/(.*) /usr/local/submin/share/submin/www/css/$1
AliasMatch ^/submin/img/(.*) /usr/local/submin/share/submin/www/img/$1
AliasMatch ^/submin/js/(.*) /usr/local/submin/share/submin/www/js/$1
<Location /submin>
SetEnv SUBMIN_CONF /etc/submin/default.conf
</Location>
- 修改:/etc/submin/default.conf
如下:
[svn]
authz_file = /home/svn/dav_svn.authz
userprop_file = /var/lib/submin/userproperties.conf
access_file = /home/svn/dav_svn.passwd
repositories = /home/svn
[www]
base_url = /submin
svn_base_url = /svn
trac_base_url = /trac
[backend]
bindir = /usr/local/submin/share/submin/bin
[generated]
session_salt = 24j1416EThk2vhdL
- 修改权限为www-data