Apache: I'm using a Yum installation, such as: Yum-y install httpd*
1. Install the APACHE+SVN combination module
Yum Install Mod_dav_svn-y
2. Set the Web page to access the SVN account and password, Apache does not provide plaintext account and password access, only to provide ciphertext access, I use HTPASSWD to produce ciphertext accounts and passwords, as follows:
Htpasswd-c/application/svndata/mysql_db/htpasswd.conf Jack #-c is a designated redaction of the configuration file, installed Nagios Friends are familiar with it.
New Password: #输入密码
Re-type New Password: #再确认一次密码
3. The Apache server configures SVN access directory.
Vim/etc/httpd/conf/httpd.conf #shift +g to the last line, as follows:
<Location/MySQL_DB> #是在url或者svn客户端上指定的访问路径
DAV SVN #声明svn
svnpath/application/svndata/mysql_db/#用来表示共同的父目录, all the different versions of the library are stored in this directory
AuthType Basic #使用基本的密码认证
AuthName "svn for mysql_db" #网站说明文字
Authuserfile/application/svndata/mysql_db/htpasswd.conf #认证密码的存放位置
This column more highlights: http://www.bianceng.cn/Servers/web/
Authzsvnaccessfile/application/svndata/mysql_db/conf/authz #认证组, storage location of the library
Satisfy All
Require Valid-user #允许合法用户登录
</Location>
4. Start Apache server:
/ETC/INIT.D/HTTPD restart
5. To the Jack user authorized access to the MYSQL_DB library, as follows:
Vim/application/svnpasswd/authz
SA = Jc,test,jack
[mysql_db:/]
@sa = RW
Test = R
Vim/application/svndata/mysql_db/conf/authz #必须添加上以下参数, otherwise there is no access to the Web SVN server.
SA = Jc,test,jack
[mysql_db:/]
@sa = RW
Test = R
#杀死进程Pid, restart the SVN server:
KILL-USR1 ' Cat/application/svndata/svn.pid '
Svnserve-d-r/application/svndata/--pid-file=/application/svndata/svn.pid
5. Test access:
Http://192.168.1.42/MySQL_DB
Enter account: Jack
Password: 123456