• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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