centos6搭建httpd+svn

1, 安装svn,httpd

yum -y install httpd
yum -y install mod_dav_svn subversion

2, 配置svn,httpd

# 1, svn 创建仓库
mkdir /svn
svnadmin create /svn/project1

#2, 配置访问权限:passwd, authz, svnserve.conf
cat > /svn/project1/conf/passwd < /svn/project1/conf/authz < /svn/project1/conf/svnserve.conf < /etc/httpd/conf.d/subversion.conf <
    DAV svn
    SVNParentPath /svn
    SVNListParentPath on
    AuthType Basic
    AuthName "Subversion login:"
    AuthUserFile /svn/http_accesspwd
    AuthzSVNAccessFile /svn/http_authz
    Satisfy all
    Require valid-user

EOF

cat >> /etc/httpd/conf/httpd.conf < /svn/http_authz <

3, 通过http访问svn

centos6搭建httpd+svn_第1张图片
解决报错:The URI does not contain the name of a repository. [403, #190001]

 配置: /etc/httpd/conf.d/subversion.conf ,将 改为

你可能感兴趣的:(linux系统)