我最近贴了类似的post,但是我很匆忙,所以我没有提供任何必要的信息。 我遵循arch-linux wiki指南,使用apache和sslbuild立一个SVN仓库。 我几乎可以肯定,我了解所有的步骤,并正确填写他们。 这里是指导: https://wiki.archlinux.org/index.php/Subversion_Setup : https://wiki.archlinux.org/index.php/Subversion_Setup 。 当我尝试连接使用
svn co https://192.168.0.21/svn/myrepo
要么
links https://192.168.0.21/svn/myrepo
httpauthentication要求我填写我的账户名称和密码。 在表格之后(不pipe名字和密码是否正确),都会有一个消息:
Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for https://192.168.0.21/svn/myrepo
我检查httpd / errors_log,每次我尝试连接,Apache输出:
[Thu Nov 29 22:19:45 2012] [error] [client 192.168.0.21] (13)Permission denied: Failed to load the AuthzSVNAccessFile: Can't open file '/home/svn/.svn-policy-file': Permission denied [Thu Nov 29 22:19:57 2012] [error] [client 192.168.0.21] (13)Permission denied: Could not open password file: /home/svn/.svn-auth-file
但是这里是我在/ home / svn上的ls -la
-rwxrwxrwx 1 http http 40 Nov 29 16:02 .svn-auth-file -rwxrwxrwx 1 http http 43 Nov 29 17:58 .svn-policy-file
我甚至跑了777,所以我只是不知道是什么原因造成的问题。 感谢您的帮助:)
@Lazy Badger这里是我的/etc/httpd/conf/extra/httpd-ssl.conf与ssl相关的部分,它在虚拟主机部分
<Location /svn> DAV svn SVNParentPath /home/svn/repositories AuthzSVNAccessFile /home/svn/.svn-policy-file AuthName "SVN Repositories" AuthType Basic AuthUserFile /home/svn/.svn-auth-file Satisfy Any Require valid-user </Location> </VirtualHost>
更改为不带点的configuration不会改变任何内容:/
说这是在监狱之外,你的意思是不在/ etc / httpd / conf或/ srv / http? 我认为这不是问题,path是绝对的。
在包含文件svn-policy和svn-auth的文件夹上也设置权限。
chown http /home/svn -R