freebsd apache svn
作者:tseng 日期:2013-01-04
1.cd /usr/ports/www/apache22
2.make WITH_BERKELEYDB=db42 install clean
3.cd /usr/ports/devel/subversion
4.make -DWITH_SVNSERVE_WRAPPER -DWITH_MOD_DAV_SVN -DWITH_APACHE2_APR install clean
SVN 基本環境
1.mkdir -p 放主目錄
2.mkdir -p /etc 放設定
3.svnadmin create 初始化
4.chown -R www:www
設定 Apache2
<Directory />
AllowOverride All
order allow,deny
Allow from All
</Directory>
設定 virtual host
<VirtualHost *:80>
DocumentRoot /主目錄前一層
ServerName localhost
<Location /svn>
DAV svn
SVNParentPath /主目錄前一層
AuthType Basic
AuthName “Svn ”
AuthUserFile /etc/svn-auth-file
AuthzSVNAccessFile /svn-access-file
Require valid-user
</Location>
</VirtualHost>
建立存取帳號
1.htpasswd -c /svn-auth-file USER1
2.htpasswd /svn-auth-file USER2
建立存取權限
/svn-access-file
[/]
USER1 = rw
USER2 = r
2.make WITH_BERKELEYDB=db42 install clean
3.cd /usr/ports/devel/subversion
4.make -DWITH_SVNSERVE_WRAPPER -DWITH_MOD_DAV_SVN -DWITH_APACHE2_APR install clean
SVN 基本環境
1.mkdir -p 放主目錄
2.mkdir -p /etc 放設定
3.svnadmin create 初始化
4.chown -R www:www
設定 Apache2
<Directory />
AllowOverride All
order allow,deny
Allow from All
</Directory>
設定 virtual host
<VirtualHost *:80>
DocumentRoot /主目錄前一層
ServerName localhost
<Location /svn>
DAV svn
SVNParentPath /主目錄前一層
AuthType Basic
AuthName “Svn ”
AuthUserFile /etc/svn-auth-file
AuthzSVNAccessFile /svn-access-file
Require valid-user
</Location>
</VirtualHost>
建立存取帳號
1.htpasswd -c /svn-auth-file USER1
2.htpasswd /svn-auth-file USER2
建立存取權限
/svn-access-file
[/]
USER1 = rw
USER2 = r
评论: 0 | 引用: 0 | 查看次数: 2761
发表评论