svn - 安装 svn : error after restarting apache

标签 svn apache configuration

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

sudo svnadmin create /svn



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

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

任何的想法?

问候

哈维

最佳答案

<Location /svn>被注释掉,删除 #在它面前。

关于svn - 安装 svn : error after restarting apache,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4153622/

相关文章:

java - 为 www.example.com 而不是 example.com 设置 cookie

apache - 如何指向 Amazon EC2 实例的本地主机?

vim - 如何将 Vim 状态栏从下移到上?

python - 如果输入参数在 Django 模板中无效,如何抛出异常

configuration - OSGI 配置包

git - SubGit:如何排除分支?

svn - 乌龟 svn 总是合并 45 个额外的文件

svn - Git 与 SVN - 网络性能(用于备份)

svn - 设置visual SVN Server后无法浏览仓库

ajax - Apache Tomcat 8.5.2 + Resteasy CORS 过滤器突然停止工作