Configuring SVN server on Apache on Ubuntu 12.04

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-03 07:01:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!