对反向代理(pound)的svn支持OPTIONS授权失败

时间:2013-03-19 19:48:30

标签: reverse-proxy

如何在pound上实施WebDav支持?

错误:

  

svn:“[repo]”授权的选项失败“

我找不到任何例子。我给了我unknown directive

ListenHTTPS
        Address 192.168.1.200
        Port 443
        Cert "/etc/pound/server.pem"
        WebDav 1
        HTTPSHeaders 1 "Front-End-Https: on"'

        Service
                HeadRequire "Host: .*svn.mydomain.com.*"
                BackEnd
                        Address 192.168.1.21
                        Port    80
                End
        End
        Service
                HeadRequire "Host: .*svn.mydomain.org.*"
                BackEnd
                        Address 192.168.1.21
                        Port    80
                End
        End
End

1 个答案:

答案 0 :(得分:2)

解决方案xHTTP 2

ListenHTTPS
        Address 192.168.1.200
        Port 443
        Cert "/etc/pound/server.pem"

        xHTTP 2

        Service
        ...

来自man pound谁知道手册有用的信息?):

xHTTP value
              Defines which HTTP verbs are accepted. The possible values are:
              ...
              2  additionally  allow  standard WebDAV verbs (LOCK, UNLOCK, PROPFIND, PROPPATCH, SEARCH, MKCOL, MOVE, COPY, OPTIONS, TRACE, MKACTIVITY, CHECKOUT, MERGE, REPORT).
               ...