大佬教程收集整理的这篇文章主要介绍了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.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中
...
以上是大佬教程为你收集整理的apache-2.2 – 使用NGINX安装SVN服务器全部内容,希望文章能够帮你解决apache-2.2 – 使用NGINX安装SVN服务器所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。