apache 와 subversion 연동 팁

ganyouxianjava 2011-12-12

저장소ROOT:/home/svn

저장소명:myproject

저장소경로:/home/svn/myproject

설정파일:./conf/svnserve.conf

[general]

auth-access=write

password-db=passwd

authz-db=authz

설정파일:./conf/authz

[myproject:/]####여기가포인트,저장소명:/로루트폴더의접근권한을설정###

crab=rw####유저명=권한

설정파일:./conf/passwd

[users]

crab=my_password####유저명=비번

http로접근하기위한파일생성

#htpasswd-chttpd_passwdcrab#(비번2번입력)

설정파일:아파치conf경로/extra/httpd-vhosts.conf

<VirtualHost*>

[email protected]

ServerNamesvn.dev.com

ServerAliassvn.dev.comwww.svn.dev.com

RewriteEngineOn

#domainredirect

RewriteCond%{HTTP_HOST}^www\.svn.dev\.com$[NC]

RewriteRule^(.*)$http://svn.dev.com$1[R=301,L]

#sso-server

<Location/sso-server>

Davsvn

#SVNParentPath/home/svn

SVNPath/home/svn/myproject

AuthTypeBasic

AuthName"MyProjectRepository"

AuthUserFile/home/svn/myproject/conf/httpd_passwd

AuthzSVNAccessFile/home/svn/myproject/conf/authz

SatisfyAny

Requirevalid-user

</Location>

#저장소한개이상일시위의섹션을같은방식으로추가

</VirtualHost>

subversio과httpdrestart

相关推荐

leehbhs / 0评论 2020-03-04