APACHE+SVN Certification deployment of combat

Source: Internet
Author: User
Tags svn

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.