yum -y install httpd subversion mod_dav_svn
vi /etc/httpd/conf.d/subversion.conf
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName "Subversion repository"
AuthzSVNAccessFile /var/www/svn/authz.conf
AuthUserFile /var/www/svn/user.passwds
Require valid-user
</Location>
mkdir -p /var/www/svn
svnadmin create /var/www/svn/project
chown -R apache.apache /var/www/svn
htpasswd -bc /var/www/svn/user.passwds test1234
vi /var/www/svn/authz.conf
[test:/]
testv= rw
[/]
[project:/]
test = rw
[/]
setenforce 0
vi /etc/selinux/config
SELINUX=disabled
systemctl restart httpd
http://localhost/svn/project/
留言列表