我尝试在本地安装svn服务器
我在服务器的/etc/httpd/conf.modules.d/10-subversion.conf中输入了此配置
Alias /svn /var/www/svn
<Location /svn>
DAV svn
SVNParentPath /var/www/svn/
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>
重新启动httpd.service
当我转到此网址http://localhost/svn/repo
时,收到此错误消息Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
答案 0 :(得分:0)
我刚刚解决了类似的问题。我用于调试的内容如下:
/var/log/apache2/error.log
Require valid-user
的情况下尝试,这可能不是您想要的,但如果没有它可行,可能是验证模块的问题。htpasswd -c -m /etc/svn-auth-users aymen
sudo a2enmod auth_basic
BTW,我建议使用auth_digest,auth_basic几乎以网络上的纯文本形式发送密码,因此很容易受到嗅探攻击。您可以查看我的问题+答案以获取更多信息: Apache webserver Require valid-user leads to internal server error