# yum install subversion mod_dav_svn
svn 경로 설정
# mkdir /var/www/svn
svn 계정 생성
# svnadmin create /var/www/svn/project1
계정 비밀번호 설정
# vi /var/www/svn/project1/conf/passwd
[users]
project1 = password
권한설정
# vi /var/www/svn/project1/conf/authz
[repo:/project1]
project1 = rw
아파치 계정 설정
# htpasswd -c /etc/httpd/conf/.htpasswd project1
디렉토리 권한 설정
# chown -R apache:apache /var/www/svn/project1
아파치 연동
# vi /etc/httpd/conf.d/subversion.conf
<Location /svn>
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/conf/.htpasswd
SVNPathAuthz on
AuthzSVNAccessFile "/var/www/svn/project1/conf/authz"
Require valid-user
</LimitExcept>
</Location>
아파치 재시작
# service httpd restart
접속경로 http://ipaddr/svn/project1
댓글 없음:
댓글 쓰기