我以这种方式创建了我的存储库:
sudo svnadmin create / svn
重新启动apache后出现此错误:
第16行的语法错误 /etc/apache2/mods-enabled/dav_svn.conf: 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
有什么想法吗?
此致
哈维
答案 0 :(得分:14)
<Location /svn>
已被注释掉,删除前面的#
。
答案 1 :(得分:5)
在我终于弄明白之前,我已经挣扎了一段时间。
需要从#<Location /svn>
和#</Location>
答案 2 :(得分:4)
根据manual,DAV
需要位于容器内(例如Location
)。