使用NGINX安装SVN服务器

我正在尝试安装SVN服务器,并使用它与我的NGINXnetworking服务器。 我已经试过了
nginx / sites-enabled / svn中的服务器部分,我已经添加了这个

  位置/ var / svn / repos {
         proxy_pass http://127.0.0.1:81;
         #include /etc/nginx/proxy.conf;
        设置$ dest $ http_destination;
        如果($ http_destination〜“^ https://(。+)”){
           设置$ dest http:// $ 1;
         }
        proxy_set_header目标$ dest;
         }

而且我在端口81上运行apache,并且已经在apache上运行了100%的虚拟主机。 现在每当我尝试svn结帐,我得到这个:

 $ svn co http://svn.mysite.com/myrepo
 svn:服务器发送意外的返回值(500内部服务器错误),以响应“http://svn.mysite.com/myrepo”的OPTIONS请求

并在错误日志中,我有这个

 2012/04/18 07:43:36 [error] 9914#0:* 106重写或内部redirect周期内部redirect到“/index.html”,客户端:93.95.201.250,服务器:mysite.com,请求:“ GET / myrepo HTTP / 1.1“,主机:”svn.mysite.com“

有谁知道如何在nginx上安装svn服务器? 任何想法是高度赞赏?
谢谢你的帮助

我已经有了这样的成功。 您可能可以更简化它,但它可能会为您提供一个可用的configuration。

在nginx.conf(或/etc/nginx/conf.d下的其他.conf文件)中:

location /var/svn/repos { # the "proxy_set_header Destination"-stuff is moved to apache's config - see below proxy_pass http://127.0.0.1:81/var/svn/repos; } 

然后在/etc/httpd/conf.d/subversion.conf

 ... <VirtualHost *:81> RequestHeader edit Destination ^https http early <Location /var/svn/repos> DAV svn SVNPath /var/svn/repos </Location> </VirtualHost>