问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/10710647/configuring-svn-server-on-apache-on-ubuntu-12-04