Saturday, October 17, 2009

Flu Transmitted From Farts

create a SVN repository to be accessed by webdav apache

First, create the subversion repository and give write permissions:

mkdir / var / svn / domain.com
chmod-R 777 / var / svn / domain.com
svnadmin create / var / svn / domain.com

Then you need to create access from apache. To do this, edit the configuration. If Plesk 9 to CentOS have to modify this file (note I use a single subdomain svn.midominiobase.com type to access all my SVN repositories):

cd / var / svn / svnadmin create domain.com

htpasswd-c / etc / svn-auth-file user1
htpasswd / etc / svn-auth-file user2
cd / var / www / vhosts / basedomain.com / subdomains / svn / conf / vi
vhost.conf

add

\u0026lt;location>

SVNPath DAV svn / var / svn / domain.com /

AuthType Basic AuthName "Subversion Repository domain.com"
AuthUserFile / etc / svn-auth-file Require user user1 user2

\u0026lt;/ location>


and finally

/ Etc / init.d / httpd restart

0 comments:

Post a Comment