我刚刚从 12.04LTS 升级到 14.04LTS。升级之前,我一直在 Apache 2.2 上运行 Subversion,没有任何问题。
升级后,当我从 TortoiseSVN 连接时,我收到“访问被禁止”消息,而当我通过浏览器直接从 HTTPS 连接时,我没有收到任何错误消息,只是一个空白屏幕。虽然它接受了我的登录,但我无权访问存储库。
这是尝试连接到我的服务器上的“Gravity”存储库时的错误日志示例:
[Tue May 26 09:03:02.244883 2015] [authz_svn:error] [pid 32362] [client 172.31.40.252:24361] Failed to load the mod_authz_svn config: Section name 'Gravity:' contains non-canonical fspath ''
[Tue May 26 09:03:02.244910 2015] [authz_svn:error] [pid 32362] [client 172.31.40.252:24361] Access denied: 'ccampbell' GET Gravity:/user
以下是访问文件 (位于 /etc/apache/svn_accessfile) 的示例
[groups]
gravity_users = ccampbell
[Gravity:/]
@gravity_users = rw
这是完整的 apache 配置(000-default.conf),我用“example.com”替换了实际的服务器名称
<VirtualHost *>
ServerAdmin [email protected]
ServerName db.example.com
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/db_example_com_cert.cer
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
# Begin Subversion Repositories through https
<Location /Gravity>
DAV svn
SVNPath /svn/Gravity
SSLRequireSSL
AuthzSVNAccessfile /etc/apache2/svn_accessfile
AuthType Basic
AuthName "Gravity subversion repository"
AuthUserFile /etc/apache2/svn_passwdfile
# <LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
# </LimitExcept>
</Location>
</VirtualHost>
任何帮助都将不胜感激,谢谢!