• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Map subdomain to svn repository

I setup svn on my server, but I didnt follow that guide to do it - most of it is correct though, go through and install subversion, create a user and then use the svnadmin to create a repo and add users to it

I created a directory /var/www/svn/ and then used svnadmin to create a directory/repository under that root

Then in my subversion.conf file I have this

# cat /etc/httpd/conf.d/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/www. Use "restorecon -R /var/www/svn"
# to label the repositories if upgrading from a previous release.
#

#
# 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
#

<Location /svn>
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 /path/to/passwdfile
#Require valid-user
</LimitExcept>
</Location>

Note that my svn repo is open to the public, if you want yours to be locked you would need to follow the documentation on the svn site on how to create users.

good luck
 
Thanks for sharing, Amin! I know this is an old article, but Subversion is something I'd like to use with Plesk 10 and 11 too. Sadly neither guide is working for me.

Which domain do you actually get to use /svn on then? All I get is a "Forbidden" screen, despite setting permissions to the Apache user and group.
 
Back
Top