安装svn:重新启动apache后出错
我是这样创建存储库的: sudo svnadmin创建/svn 重新启动apache后,出现以下错误: 的第16行出现语法错误 /etc/apache2/mods enabled/dav_svn.conf: 这里不允许使用DAV安装svn:重新启动apache后出错,svn,apache,configuration,Svn,Apache,Configuration,我是这样创建存储库的: sudo svnadmin创建/svn 重新启动apache后,出现以下错误: 的第16行出现语法错误 /etc/apache2/mods enabled/dav_svn.conf: 这里不允许使用DAV #dav_svn.conf-Subversion/Apache配置示例 # #有关详细信息和更多选项,请参阅Apache用户手册和 #颠覆书。 # #注意:对于具有多个vhost的设置,您需要执行此操作 #在/etc/apache2/sites available/*中
#dav_svn.conf-Subversion/Apache配置示例
#
#有关详细信息和更多选项,请参阅Apache用户手册和
#颠覆书。
#
#注意:对于具有多个vhost的设置,您需要执行此操作
#在/etc/apache2/sites available/*中配置,不在此处。
# ...
#URL控制存储库在外部世界中的显示方式。
#在本例中,客户机以以下方式访问存储库:http://hostname/svn/
#注意,文本/svn不应存在于文档根目录中。
#
#取消对此的注释以启用存储库
DAV svn
#将其设置为存储库的路径
SVNPath/svn
有什么想法吗
问候
Javi
被注释掉,移除它前面的#
。根据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