Configuration of 1.SVN
sudo Install Subversion // installation svnmkdir// Create warehouse // the command executes under the root directory -D -r/home/svn // start from this directory
Here for convenience, first upload two folders via TORTOISESVN client code and database, in the Repos directory
Set up two accounts YCC and YZG passwords are 123
CD /home/svn/passwd
We ask YCC to access all the content under Repos, and YZG can only access the database folder
Vim Authz
Repos represents the repository starting with the root directory
Remember to modify svnserve.conf
Vim svnserve.conf
2.apache2 Configuration
Using HTTP access via Apache2
sudo Install apache2 sudo Install libapache2-svn // will generate dav_ under the/etc/apache2/mods-available folder Svn.confwen file, that is, we need to bind the SVN configuration file
First set up two accounts YCC and YZG password 123 123
sudo Install // Installation Tools
cd/etc/-C dav_svn. passwd YCC // first set up account to add-C
Then you will be prompted to enter the password two times 123 123
HTPASSWD dav_svn. passwd yzg // Second Setup account do not add-c
In this way, the dav_svn.passwd file is generated under/etc/apache2 and is used when configuring the Dav_svn.conf file later
Then start configuring Dav_svn.con
Vim/mods-available/dav_svn.conf
Here are a few important points to consider:
Location is the directory where the browser enters the address when it is ip+/svn/repos;
Svnpath directory for the resource pool
AuthUserFile is the newly created account file;
Authzsvnaccessfile is the file permission to access the configuration file, which is configured in SVN;
Require Valid-user requires authentication of user identities
Finally start apache2
sudo /etc/init.d/apache2 restart
This can be accessed in the browser input ip+/svn/repos, enter the account password
YCC account can see all folders
YZG account can only see the database folder
Ubuntu 14.04 under SVN + apache2 configuration