Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Ubuntu configuration SVN and http mode access     - Linux PXE unattended installation PXE-E32: TFTP OPen timeout the solution (Linux)

- Git uses a basic tutorial (Linux)

- CentOS 7.0 Automatic installation CD-ROM production Comments (Linux)

- RMAN backup file is much larger than the size of the database Cause Analysis (Database)

- Construction LVM-based raw device Oracle10g Database on Oracle Linux 5.11 (Database)

- mydumper installation error process (Database)

- DataGuard the MRP can not start to analyze and solve problems (Database)

- installation process of Matlab 2012a under Ubuntu 14.04 (Linux)

- Oracle Database import and export combat (Database)

- Manager Docker browser (Server)

- Install the latest Eclipse IDE in Ubuntu (Linux)

- OpenStack / Dev stack with neutron on Ubuntu 14.04 (Server)

- The user of fedora is not in the sudoers file method to solve (Linux)

- Production environment Linux bonding method standby mode slave card switch (Server)

- Unix / Linux commonly used to clean up disk space command (Linux)

- Understanding Linux firewall Iptables (Linux)

- xCAT Installation Kit (Linux)

- Hibernate learning introductory tutorial (Programming)

- Recover accidentally deleted Nginx logs (Server)

- Depth understanding of DB2 table space (Tablespace) (Database)

 
         
  Ubuntu configuration SVN and http mode access
     
  Add Date : 2017-08-31      
         
       
         
  Assume that the apache server has been installed and started on port 80. All operations are carried out under the root user, in particular the establishment of the warehouse folder and open the svn server to build the repository are under the root user permissions, this will prevent the last client operation occurs when the permissions problem, the actual use of new svn dedicated users and Grant read and write permissions to manage.

Install the SVN

Apt-get install subversion
Create the svn repository

1). Create svn directory: (use hidden directory)

Mkdir /home/.svn
Cd /home/.svn
2). Create the warehouse test1:

Mkdir test1
Svnadmin create /home/.svn/test1
After the completion of test1 directory has svnadmin create the directory and file
3). Create the warehouse test2:

Mkdir test2
Svnadmin create /home/.svn/test2
After the implementation of test2 directory has svnadmin create the directory and file

Configure and manage svn

1). Configure svnserve.conf
The configuration file for each repository is under $ repos / conf /, vim svnserve.conf, and the configuration item under [general]:
Anon-access: Anonymous user permissions, can be read, write and none, the default value read. Anonymous user access is not allowed: anon-access = none
Auth-access: Authentication user permissions, can be read, write and none, the default value of write.
Password-db: password database path, remove the front of the #
Authz-db: The path to the authentication rule base, removing the leading #.
Note: These configuration items are the top of the line, otherwise an error. After the configuration, you need to restart svn to take effect.
2). Configure the passwd file
This is the password file for each user, is relatively simple, is the "user name = password", is used in the code. Such as

Adminuser = passwordxxx
User1 = 111111
User2 = 222222
3). Configure the authz file
[Groups]: In order to facilitate the management, you can put some users inside a group, such as:

[Groups]
Admin = adminuser
Develop = user1, uesr2
Groups below the section of a list of authentication rules, such as the root directory of the authentication rules section [/]. When setting a single user authentication rule, a user line, if you use the group, you need to add the group name before the @

[/]
@ Admin = rw #admin The permissions for the root directory for the user group are rw
Start from /home/.svn/test1 start, / is the test1 directory, as above to test1 directory root set permissions.
If started from /home/.svn/, each repository root is its own home directory. You can set the permissions of test1 as above, or you can use the following methods:

[Test1: /]
@ Admin = rw
[Test1: / trunk / test1]
@ Develop = rw
[Repos: /] This method only applies to multi-warehouse situation; [/] Suitable for single-warehouses and single-warehouse approach.

Starts and stops svn

1). Start:
Start from the test1 directory (a project repository directory)

Svnserve -d -r /home/.svn/test1
The root directory (/) is test1, and the authz rules are configured using section [/]. The access method is: svn: //192.168.0.87/
Start from the .svn directory

Svnserve -d -r /home/.svn
The root directory (/) is .svn, and authz uses the section [test1: /] for the configuration of test1. The access mode is:
Svn: //192.18.0.87/test1
Svn: //192.18.0.87/test2
If you need to start svn, add the command to /etc/rc.local
2). Check whether the svn server has been started (svn default port 3690):

Netstat -tnl | grep 3690
1
3). Stop:

Killall svnserve
Configure http access

Will svn configuration to apache http web access through the need to edit / etc / apache2 / apache.conf file, and then add the following to apache.conf tail

< Location / test1>
    DAV svn
    SVNPath /home/.svn/test1
    AuthzSVNAccessFile /home/.svn/test1/conf/authz
    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /home/.svn/test1/conf/passwd
    Require valid-user
< / Location>
There are multiple items you need to add more than the above configuration item can be.
At the same time, in order to enable the identification of svn apache configuration items need to be loaded to ensure that the apache loading the following modules:

LoadModule dav_module modules / mod_dav.so
LoadModule dav_fs_module modules / mod_dav_fs.so
LoadModule dav_svn_module modules / mod_dav_svn.so
LoadModule authz_svn_module modules / mod_authz_svn.so
After the above configuration is completed, you can use the way http://192.18.0.87/test1 visit.
     
         
       
         
  More:      
 
- How to build Memcached Docker container (Server)
- Install the latest Pinta graphics editing software on Ubuntu 14.04 (Linux)
- Nginx load balancing configuration (http proxy) (Server)
- A simple shell script for monitoring in Linux (Linux)
- CentOS 7.1 install NTFS-3G (Linux)
- Linux common commands: nslookup, ls md5sum, uname, history, etc. (Linux)
- FFmpeg compiled with only H264 decoding library (Programming)
- Linux using TCP-Wrapper Service Management (Linux)
- How to Set Free SSH password on CentOS / RHEL (Linux)
- Install the Solaris 10 operating system environment over the network to sparc (Linux)
- CentOS yum source deployment (Linux)
- FastDFS installation and deployment (Server)
- Android imitation UC browser scroll up and down functions (Programming)
- Detailed Linux platform chip programming process (Programming)
- Linux with Windows Explorer as a security system (Linux)
- Eclipse 3.7.2 can not start solving under Ubuntu 14.04 (Linux)
- MySQL and MariaDB new master from the cluster configuration GTID (Database)
- Puppet 3.5 Source package Installation and Configuration (Server)
- Fedora 8 configured Heartbeat (Linux)
- Git and GitHub use of Eclipse and Android Studio (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.