apache-2.2 – 使用NGINX安装SVN服务器

我正在尝试安装SVN服务器并将其与我的NGINX网络服务器一起使用.
我试过这个
在nginx / sites-enabled / svn的服务器部分中,我添加了这个

  location /var/svn/repos {
        proxy_pass      http://127.0.0.1:81;
        #include         /etc/nginx/proxy.conf;
        set  $dest  $http_destination;
        if ($http_destination ~ "^https://(.+)") {
           set  $dest   http://$1;
        }
       proxy_set_header  Destination   $dest;
        }

我在81端口运行apache
并使得在apache上运行100%的虚拟主机.
现在,每当我尝试svn checkout,我得到这个:

$svn co http://svn.mysite.com/myrepo
svn: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for 'http://svn.mysite.com/myrepo'

并在错误日志中我有这个

2012/04/18 07:43:36 [error] 9914#0: *106 rewrite or internal redirection cycle while internal redirect to "/index.html",client: 93.95.201.250,server: mysite.com,request: "GET /myrepo HTTP/1.1",host: "svn.mysite.com"

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

最佳答案
我已经取得了类似的成功.您可能能够进一步简化它,但它可能会为您提供工作配置.

在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中

...

相关文章

文章浏览阅读3.7k次,点赞2次,收藏5次。Nginx学习笔记一、N...
文章浏览阅读1.7w次,点赞14次,收藏61次。我们在使用容器的...
文章浏览阅读1.4k次。当用户在访问网站的过程中遇到404错误时...
文章浏览阅读2.7k次。docker 和 docker-compose 部署 nginx+...
文章浏览阅读1.3k次。5:再次启动nginx,可以正常启动,可以...
文章浏览阅读3.1w次,点赞105次,收藏182次。高性能:Nginx ...