重启apache后安装svn:error

zii*_*web 4 svn apache configuration

我用这种方式创建了我的存储库:

sudo svnadmin create/svn

重新启动apache后,我收到此错误:

/etc/apache2/mods-enabled/dav_svn.conf第16行的语法错误:此处不允许使用DAV

# 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
Run Code Online (Sandbox Code Playgroud)

任何的想法?

问候

哈维

San*_*ken 14

<Location /svn>得到注释,删除#它前面.


小智 5

在我终于弄明白之前,我挣扎了一段时间.

需要删除##<Location /svn>#</Location>