Skip to content

Instantly share code, notes, and snippets.

@versluis
Created July 17, 2012 15:06
Show Gist options
  • Save versluis/3129946 to your computer and use it in GitHub Desktop.
Save versluis/3129946 to your computer and use it in GitHub Desktop.
How to install Subversion on CentOS with Plesk
#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn". Each repository
# must be both:
#
# a) readable and writable by the 'apache' user, and
#
# b) labelled with the 'httpd_sys_content_t' context if using
# SELinux
#
#
# To create a new repository "http://localhost/repos/stuff" using
# this configuration, run as root:
#
# # cd /var/www/svn
# # svnadmin create stuff
# # chown -R apache.apache stuff
# # chcon -R -t httpd_sys_content_t stuff
#
<Location /repos>
DAV svn
SVNParentPath /var/www/svn
# # Limit write permission to list of valid users.
<LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</LimitExcept>
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment