子域上的 SVN,无法从 apache/plesk/setup 上的 .htpassword 授权用户
我已经在我的服务器上设置了一个存储库,我通过子域“svn.site.com”访问它,
我的 vhost.conf 有
#/var/www/vhosts/isuckatwebdesign.com/subdomains/svn/conf/vhost.conf
ServerName svn.isuckatwebdesign.com
<Location />
#svn.isuckatwebdesign.com -- vhost.conf file
DAV svn
SVNPath /var/www/vhosts/isuckatwebdesign.com/subdomains/svn/svnrepo/isuk
#AuthType Basic
#AuthName "Subversion Repository"
#AuthUserFile /etc/subversion/passwd
#Require valid-user
</Location>
当我像代码块中那样注释掉授权时,我没有得到 500 内部服务器登录存储库时出错,它显示存储库,但我无法提交存储库,如果未注释它,则会出现服务器错误。
Apache 错误日志显示
[Sun Apr 10 07:38:55 2011] [crit] [client 214.27.58.2] configuration error: couldn't check access. No groups file?: /
[Sun Apr 10 07:38:55 2011] [crit] [client 214.27.58.2] configuration error: couldn't check access. No groups file?: /error_docs/internal_server_error.html
I've setup a repo on my server that i access through a sub domain "svn.site.com"
My vhost.conf has
#/var/www/vhosts/isuckatwebdesign.com/subdomains/svn/conf/vhost.conf
ServerName svn.isuckatwebdesign.com
<Location />
#svn.isuckatwebdesign.com -- vhost.conf file
DAV svn
SVNPath /var/www/vhosts/isuckatwebdesign.com/subdomains/svn/svnrepo/isuk
#AuthType Basic
#AuthName "Subversion Repository"
#AuthUserFile /etc/subversion/passwd
#Require valid-user
</Location>
When I comment out the Authorization like i have in the code block I don't get a 500 internal server error when logging into the repo and it displays the repo but I can't commit to the repo, if it's uncommented it gives the server error.
Apache Error log displays
[Sun Apr 10 07:38:55 2011] [crit] [client 214.27.58.2] configuration error: couldn't check access. No groups file?: /
[Sun Apr 10 07:38:55 2011] [crit] [client 214.27.58.2] configuration error: couldn't check access. No groups file?: /error_docs/internal_server_error.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Subversion 中,您可以定义用户组并根据用户的身份验证向这些组授予权限。因此,如果您的 subversion 存储库定义了组,并且由于您根本没有提供任何身份验证,则 SVN 无法将您的用户链接到任何组,并且您可能已默认为只读组。
您可以仔细检查存储库中定义的 SVN 组吗?
我不能完全确定,但这本书讲述了这种配置的可能性
http://svnbook.red -bean.com/en/1.5/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.auth
我几个月前配置了一个存储库,并使用 Apache 身份验证和 SVN 组。
In subversion you can define groups of users and grant privileges to those groups based on their authentication. Thus, if your subversion repository has groups defined, and since you are not providing any authentication at all SVN cannot link your user to any group and you may have been defaulted to a read-only group.
Can you double check the SVN groups defined in your repository?
I cannot be entirely sure, but the book tells about this configuration possibilities
http://svnbook.red-bean.com/en/1.5/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.auth
I configured a repo months ago and I use Apache authentication and SVN groups.