Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring SVN server on Apache on Ubuntu 12.04

I'm trying to access an existing Subversion server over HTTP. My dav_svn.conf file looks like:

<Location /svn>
    DAV svn
    SVNParentPath /home/svn/repos
    SVNListParentPath on
    AuthType Basic
    AuthName "Restricted Access"
    AuthUserFile /home/svn/passwdfile
    Require valid-user
    AuthzSVNAccessFile /home/svn/accessfile
</Location>

But when I'm trying to access "some-site/svn", I'm getting the following error:

The requested URL /svn/ was not found on this server.

The Apache error log shows "file does not exist: /var/www/svn"

How do I resolve this?

like image 773
bray Avatar asked Dec 22 '25 23:12

bray


1 Answers

Run this:

a2enmod dav_svn
service apache2 restart

as super user (root), e.g. sudo a2enmod dav_svn && sudo service apache2 restart.

This assumes that you are using the proper method (Debian+Ubuntu) of editing the two files: /etc/apache2/mods-available/dav_svn.{conf,load}, not some homebrew method.

like image 123
0xC0000022L Avatar answered Dec 24 '25 14:12

0xC0000022L



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!