颠覆svn+http访问 [英] Subversion svn+http access

查看:31
本文介绍了颠覆svn+http访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我们通过 svn:\ 访问我们的 repo,但最近需要通过 http://访问一组受限文件.我们有一些原始的 html 和 txt 文件,我们需要使用 http://直接从 repo 中显示这些文件.

Currently we access our repo via svn:\, but recently the need to access a restricted set of files via http:// has arisen. We have certain raw html and txt files which we need to display directly from the repo using http://.

我们的存储库由 Windows 服务器上的 svnserve 进程托管,所有访问都在内部网中,因此不存在重大安全风险,如果我们的存储库可通过互联网访问,就会出现这种情况.

Our repo is hosted by the svnserve process on a windows server and ALL access is on an INTRANET so there's no major security risks, as it would have been the case if our repo was acsessible over the internet.

我正在考虑使用 svnauthaccess 限制访问:

I was thinking about restricting access using svnauthaccess:

# deny all access to everything [svn:/]
* = 
# allow only read of 
[svn:/ProjX/trunk/Doc/some.txt]
[svn:/ProjY/trunk/Doc/info.html]

有没有办法做到这一点,而不必先安装 Apache?类似于:http://svnserver:8080/svn/ProjX/trunk/Doc/some.txt

Is there any way to do this, without have to install Apache first? Something like: http://svnserver:8080/svn/ProjX/trunk/Doc/some.txt

亲切的问候加勒特

推荐答案

我不这么认为.Svnserve 使用 Subversion 协议;它不是作为网络服务器的业务.这就是 Apache 存在 mod_dav_svn 插件的原因.

I don't believe so. Svnserve speaks the Subversion protocol; it's not in the business of being a webserver. That's why the mod_dav_svn plugin exists for Apache.

幸运的是,设置起来并不困难;查看 Subversion 书的相关章节:http://svnbook.red-bean.com/en/1.0/ch06s04.html.一旦它运行起来,您就几乎可以完全按照您在问题中所说的去做.

Fortunately, it's not at all difficult to set up; check out the relevant chapter of the Subversion book: http://svnbook.red-bean.com/en/1.0/ch06s04.html. Once you get it running, you'll be able to do pretty much exactly what you said you'd like to do in your question.

这篇关于颠覆svn+http访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆