Apache内部服务器错误导致svn错误

时间:2017-08-01 19:29:08

标签: apache svn

我尝试在本地安装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.

1 个答案:

答案 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