开发者

Subversion svn+http access

开发者 https://www.devze.com 2023-01-16 16:05 出处:网络
Currently we access our repo via svn:\\, but recently the need to access a restricted set of files via http:// has arisen.

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://.

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.

I was thinking about restricting access using svnautha开发者_运维百科ccess:

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

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

Kind regards Garrett


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.

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.


You may also make use of hook svn scripts there you can define actions how system should respond on attempts of overwriting given subset of files.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号