Installing svn: error after restarting apache

﹥>﹥吖頭↗ 提交于 2021-02-07 18:29:17

问题


I've created my repository this way:

sudo svnadmin create /svn

After restarting apache i get this error:

Syntax error on line 16 of /etc/apache2/mods-enabled/dav_svn.conf: 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

Any idea?

Regards

Javi


回答1:


<Location /svn> got commented out, remove the # in front of it.




回答2:


I struggled with this for a while before I finally figured it out.

Need to remove the # from #<Location /svn> and #</Location>




回答3:


According to the manual, DAV needs to be inside a container (e.g. Location).



来源:https://stackoverflow.com/questions/4153622/installing-svn-error-after-restarting-apache

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