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

你可能感兴趣的:(subversion)