匿名访问 svn 存储库的部分内容
我一直在网上和 SO 上的其他帖子查找如何添加对我的 svn 存储库的匿名访问,但似乎没有任何效果。我的存储库所在的目录中有 svnaccess.conf 文件,并且我设置了对项目具有读写访问权限的组,如下所示:
[groups]
admins = administrator
myproject= me
[/]
# give admins read/write access to all repositories
@admins = rw
[myproject:/]
@myproject= rw
这对于具有读写访问权限的用户来说效果很好。但我想允许匿名访问该项目,以便任何人都可以在尝试查看存储库时获得读取访问权限,而无需显示登录屏幕。我见过的很多帖子都涉及将 * = r 和 anon-auth = read 添加到文件中,但当我尝试时它仍然显示登录屏幕。我做错了什么吗?
I've been looking online and at the other posts on SO to figure out how to add anonymous access to my svn repository but nothing seems to work. I have the svnaccess.conf file in the directory where my repository is and I have groups setup with read and write access to the project like this:
[groups]
admins = administrator
myproject= me
[/]
# give admins read/write access to all repositories
@admins = rw
[myproject:/]
@myproject= rw
This works fine for users who have read and write access. But i want to allow anonymous access to the project so anyone could have read access without having the login screen showup when trying to view the repository. A lot of the posts i've seen have involved adding * = r and anon-auth = read to the file but when i tried that it still shows the login screen. Am i doing something wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否还在 Apache conf 中添加了
Satisfy Any
?Apacheconf 可能是这样的:
Did you also add
Satisfy Any
in Apache conf?Apache conf could be something like this: