Linux / 各種サーバー / apache 2.2.x の設定
yum install mod_dav_svn
#ServerName www.example.com:80 ServerName myserver:80
<Location /repos> DAV svn SVNParentPath /var/www/svn # Limit write permission to list of valid users. <LimitExcept GET PROPFIND OPTIONS REPORT> # Require SSL connection for password protection. # SSLRequireSSL AuthType Basic AuthName "Authorization Realm" AuthUserFile /etc/httpd/.htpasswd Require valid-user </LimitExcept> </Location>
cd /etc/httpd htpasswd -c .htpasswd user1
cd /etc/httpd htpasswd -c .htpasswd user2
mkdir /var/www/svn
cd /var/www/svn svnadmin create mylabo svn mkdir file:///var/www/svn/mylabo/trunk file:///var/www/svn/mylabo/tags file:///var/www/svn/mylabo/branches -m 'Create trunk, tags, and branches.' chown -R apache:apache /var/www/svn
/sbin/service httpd restart
http://サーバー名/repos/mylabo/