Access SVN configuration through Ubuntu HTTP

Source: Internet
Author: User

Original

> Ubuntu 10.4 lts

 

1. install Apache

Sudo apt-Get install apache2

2. Install SVN

Sudo apt-Get install Subversion

Sudo apt-Get install libapache2-svn

3. Create a folder for the svn Repository

Sudo mkdir/var/SVN

4. Use the svn command to create a storage warehouse

Sudo svnadmin create/var/SVN

* Then we can see that some files and folders are added to the svn directory.

5. Authorize the repository directory to Apache for read/write.

Sudo chown-r www-data: www-data/var/SVN

6. Open the Apache configuration file and modify the configuration of dav_svn.conf.

Sudo Vim/etc/apache2/mod-available/dav_svn.conf

Add the content (or remove the comments from the Front)

<Location>

Dav SVN

Svnpath/var/SVN

Authtype basic

Authname "My subversion repository"

Authuserfile/var/SVN/CONF/passwd

#

Require valid-user

#

</Location>

 

7. Add users to SVN

Sudo htpasswd-C/var/SVN/CONF/passwd Username

* Enter the password twice.

8. Restart the apache service.

Sudo/etc/init. d/apache2 restart

9. Next, enter

Http: // 127.0.0.1/SVN

Enter the username and password to view the svn repository!

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.