subversion.conf
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn". Each repository
# must be readable and writable by the 'apache' user. Note that if
# SELinux is enabled, the repositories must be labelled with a context
# which httpd can write to; this will happen by default for
# directories created in /var/ Use "restorecon -R /var/www/svn"
# to label the repositories if upgrading from a previous release.
#
#
# To create a new repository "" using
# this configuration, run as root:
#
# # cd /var/www/svn
# # svnadmin create stuff
# # chown -R apache.apache stuff
#
ServerAdmin
DocumentRoot /home/svn/
ServerName svn.vidanetwork.net
ErrorLog logs/svn.vidanetwork.net-error_log
CustomLog logs/svn.vidanetwork.net-access_log common
DAV svn
SVNParentPath /home/svn/repos
# Limit write permission to list of valid users.
#
# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
AuthName "Vidanetwork Inc."
AuthUserFile /home/svn/svnpasswd
Require valid-user
#
readme.txt
htpasswd -m svnpasswd username
check out the project with super user
# cd /home/dev4/html
# svn co .......
# chown -R dev4:dev4 IG
#
create project
cd /home/svn/repos
svnadmin create projectname
chown -R apache.apache projectname
cd /tmp
mkdir projectname
cd projectname
mkdir trunk tags branches
cd ..
svn import projectname -m "create vmanager project."
阅读(628) | 评论(0) | 转发(0) |