我正在尝试使用 SVN 通过 HTTPS 设置 CentOS 6.5 64 位服务器。不幸的是,在配置文件/etc/httpd/conf.d/subversion.conf
如下之后(更改了路径):
<Location /repos>
DAV svn
SVNParentPath /path/to/svn/repos
# Limit write permission to list of valid users
<LimitExcept GET PROPFIND OPTIONS REPORT>
# Require SSL connection for password protection
SSLRequireSSL
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /path/to/passwdfile
Require valid-user
</LimitExcept>
</Location>
重新启动 http 时出现以下错误消息:
Starting httpd: Syntax error on line 3 of /etc/httpd/conf.d/subversion.conf:
Unknown DAV provider: svn
我已三次检查该mod_dav_svn
软件包是否已安装:
Package mod_dav_svn-1.6.11-10.el6_5.x86_64 already installed and latest version
我的配置有误吗或者我需要设置其他包?
答案1
似乎未加载模块 mod_dav_svn。检查 subversion.conf,应该取消注释以下行
LoadModule dav_svn_module modules/mod_dav_svn.so