bray
bray

Reputation: 601

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?

Upvotes: 3

Views: 4663

Answers (1)

0xC0000022L
0xC0000022L

Reputation: 21369

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.

Upvotes: 6

Related Questions