wzNewFace00 2012-02-21
以下内容在CentOS6.0操作系统(64位)下操作。
yuminstallhttpdhttpd-develsubversionmod_dav_svnmod_auth_mysql
htpasswd-c/home/repository/authfiletestuser
svnadmincreate/home/repository/test
chown-Rapache:apache/home/repository/
<Location/svn>
DAVsvn
SVNParentPath/home/repository
#
##Limitwritepermissiontolistofvalidusers.
#<LimitExceptGETPROPFINDOPTIONSREPORT>
##RequireSSLconnectionforpasswordprotection.
##SSLRequireSSL
#
AuthTypeBasic
AuthName"AuthorizationSVN"
AuthUserFile/home/repository/authfile
AuthzSVNAccessFile/home/repository/authz.conf
Requirevalid-user
#</LimitExcept>
</Location>
svnimport/home/repository/SVN_Modelfile:///home/repository/test-m“test”
[test:/]
testuser=rw
servicehttpdstart
/etc/rc.d/init.d/iptablesstop
chkconfighttpdon
chkconfigiptablesoff
#SELINUX=enforcing
SELINUX=disabledpub_svnserve.conf的 pub_authz.conf的配置文件有非法字符的原因引起,需要查找pub_authz.conf提的非法内容比如多余的空格删除或直接将pub_authz.conf