安装svn:重启apache后出现错误

5

我是这样创建我的代码库的:

sudo svnadmin create /svn

重新启动apache后,我遇到了这个错误:

/etc/apache2/mods-enabled/dav_svn.conf文件的第16行存在语法错误: DAV not allowed here

# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual and
# the Subversion book.
#
# NOTE: for a setup with multiple vhosts, you will want to do this
# configuration in /etc/apache2/sites-available/*, not here.

# <Location URL> ... </Location>
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as http://hostname/svn/
# Note, a literal /svn should NOT exist in your document root.
#<Location /svn>

  # Uncomment this to enable the repository
  DAV svn

  # Set this to the path to your repository
  SVNPath /svn

有什么想法吗?

祝好

Javi

3个回答

14

<Location /svn>被注释掉了,请去掉前面的#


5

在我最终理解之前,我曾经苦苦挣扎。

需要将#<Location /svn>#</Location>中的#号删除。


4
根据手册DAV需要在容器(例如Location)内部。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接