apache 拥有 通过 文件的 都在 file cat 一次 lis
用 apache 发布 svn
除了安装 svn 外,还需要安装 httpd 的模块
yum install mod_dav_svn -y
把项目文件的拥有者改成 apache
cd /application/svndata/
chown -R apache:apache sadoc
安装完毕后编辑
vim /etc/httpd/conf.d/subversion.conf
DAV svn
SVNParentPath /application/svndata/ #所有的项目都在 http://ip/svn
#SVNPath /application/svndata/sadoc #只发布一个项目
SVNListParentPath on
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /application/svnpasswd/httppasswd #稍后用命令生成
AuthzSVNAccessFile /application/svnpasswd/httpauth.conf #稍后编辑
Require valid-user
RedirectMatch ^(/svn)$ $1/ #重定向 / svn 到 / svn/
生成密码文件(第一次用 - c 新建文件,之后就不需要了)
htpasswd -c /application/svnpasswd/httppasswd lmkmike
输入密码
编辑权限文件
vim /application/svnpasswd/httpauth.conf
[/]
lmkmike = r
[sadoc:/]
lmkmike = rw
通过 http://ip/svn 即可访问
SVN-2: 用 apache 发布
来源: http://www.bubuko.com/infodetail-2470662.html