我试图configuration我的Subversion服务器使用apache2,mod_dav_svn和基本摘要authenticaton(现在)。 我已经设置了子域svn.example.com来提供回购,并创build了如下的虚拟主机configuration文件:
<VirtualHost *:80> ServerAdmin [email protected] ServerName svn.example.com <Location /> DAV svn # Automatically map any "/foo" URL to repository /var/svn/repos/foo SVNParentPath /var/svn/repos # List repositories if viewed from a web browser SVNListParentPath on # Authentication: Digest AuthName "Private Area" AuthType Digest AuthUserFile /etc/svn-auth.htdigest # Authoriztion: Authenticated users only Require valid-user </Location> </VirtualHost>
这个conf文件(svn.example.com)位于apache2的sites-available目录中,也位于sites-enabled内。
最后,我使用htdigest创build了auth用户文件。
在这一步我想testing设置。 但是,每次我在浏览器中打开svn.example.com,我只能看到一个空白页面。 我不知道什么是错的。 我检查了Apache访问/错误日志文件,但没有什么可以帮助。
有什么想法吗 ?
我敢打赌, error_log一定有东西。 确保Apache对SVN根目录具有访问权限:
# chown -R www-data:www-data /var/svn/repos
我想清楚是什么 首先,我在我的文件区有一个错误,而不是子域的CNAME条目,有一个Alogging。
之后,我启用了auth_digest模块,一切工作正常。