svn 错误与 Apache 内部服务器错误
svn error with Apache internal server error
我尝试在本地安装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
我在转到此 url 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.
我刚刚解决了我自己的一个类似问题。我用于调试的是以下内容:
- 检查
/var/log/apache2/error.log
处的错误日志文件
- 尝试不使用
Require valid-user
,这可能不是您想要的,但如果不使用它也能正常工作,则可能是身份验证模块存在问题。
- 验证您是否创建了密码文件
htpasswd -c -m /etc/svn-auth-users aymen
- 验证身份验证模块是否打开:
sudo a2enmod auth_basic
顺便说一句,我建议改用 auth_digest,auth_basic 通过网络几乎以纯文本形式向您发送密码,因此很容易受到嗅探攻击。您可以查看我的问题+答案以获取更多信息:
我尝试在本地安装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
我在转到此 url 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.
我刚刚解决了我自己的一个类似问题。我用于调试的是以下内容:
- 检查
/var/log/apache2/error.log
处的错误日志文件
- 尝试不使用
Require valid-user
,这可能不是您想要的,但如果不使用它也能正常工作,则可能是身份验证模块存在问题。 - 验证您是否创建了密码文件
htpasswd -c -m /etc/svn-auth-users aymen
- 验证身份验证模块是否打开:
sudo a2enmod auth_basic
顺便说一句,我建议改用 auth_digest,auth_basic 通过网络几乎以纯文本形式向您发送密码,因此很容易受到嗅探攻击。您可以查看我的问题+答案以获取更多信息: