【问题标题】:Installing svn: error after restarting apache安装 svn:重启 apache 后出错
【发布时间】:2011-05-08 09:44:40
【问题描述】:

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

sudo svnadmin 创建 /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

有什么想法吗?

问候

贾维

【问题讨论】:

    标签: svn apache configuration


    【解决方案1】:

    &lt;Location /svn&gt; 被注释掉了,去掉前面的#

    【讨论】:

      【解决方案2】:

      在我终于弄明白之前,我为此苦苦挣扎了一段时间。

      需要删除#&lt;Location /svn&gt;#&lt;/Location&gt;中的#

      【讨论】:

        【解决方案3】:

        根据manualDAV 需要在容器内(例如Location)。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2017-05-28
          • 1970-01-01
          • 2023-03-28
          • 2014-07-28
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多