Apache & Subversion配置

本文详细介绍了如何在CentOS系统中配置Apache以支持Subversion版本控制系统,并提供了定制Subversion仓库路径的方法。通过修改Apache配置文件可以实现对Subversion仓库位置的灵活指定。

I.CentOS Apache配置详解

(http://xuebingnanmm.javaeye.com/blog/629810)

II.Subversion on CentOS

(http://wiki.centos.org/HowTos/Subversion#head-2afd8f61ccc6de4477fde9a4bcc84720b86c17a9)

III. How to customize the path of svn repository?

The URL of svn repository is like http://<server_name>/<location>/<project>. You can store the svn repository to anywhere you want.

If the location is not defined in/etc/httpd/conf/httpd.conf, add such definition in it:
<Directory /path>
Options FollowSymLinks
AllowOverride None
</Directory>

Then change the /etc/httpd/conf.d/subversion.conf, such as:
<Location /tmp>
DAV svn
# SVNParentPath /var/www/svn/repos
# AuthzSVNAccessFile /etc/svn-acl-conf
SVNPath /tmp/svn/project
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</Location>


However,SVNParentPathis can not be used here and onlySVNPathis supported (http://lists.freebsd.org/pipermail/freebsd-questions/2009-November/208244.html).

The <Location />...</Location> tags also can be added in /etc/httpd/conf/httpd.conf ( http://stackoverflow.com/questions/673572/how-to-specify-the-repository-in-apache-dav-svn).
Command to stop SELinux: setenforce 0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值