502 Bad Gateway with nginx + apache + subversion + ssl

svn commit的时候返回

bash 复制代码
unexpected http status 502 'bad gateway' on

解决方法,参考:https://stackoverflow.com/questions/2479346/502-bad-gateway-with-nginx-apache-subversion-ssl-svn-copy

在nginx中代理svn中添加

bash 复制代码
location /svn {
	set $fixed_destination $http_destination;
	if ( $http_destination ~* ^https(.*)$ ) {
	    set $fixed_destination http$1;
	}
	proxy_set_header Destination $fixed_destination;
	proxy_set_header Host $http_host;
}

配置后即可正常提交

相关推荐
铁锅与大鹅2 小时前
http+nginx
网络协议·nginx·http
s_fox_4 小时前
Nginx Embedded Variables 嵌入式变量解析(4)
java·网络·nginx
彬sir哥5 小时前
Cannot import to svn: ‘C:\Program‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
svn·android studio
致奋斗的我们5 小时前
Nginx反向代理及负载均衡
linux·运维·mysql·nginx·负载均衡·shell·openeluer
花千树-0108 小时前
Java中的自然语言处理(NLP)工具:Stanford NLP、Apache OpenNLP、DL4J
java·自然语言处理·nlp·aigc·apache
招风的黑耳15 小时前
使用Nginx本地部署Axure生成的HTML文件,局域网内浏览器通过IP和地址访问
nginx·html·axure·本地部署
s_fox_17 小时前
nginx ngx_http_module(7) 指令详解
运维·nginx·http
Bai_Yin17 小时前
Debezium 与 Apache Kafka 的集成方式
分布式·kafka·apache·debezium
若云止水18 小时前
Ubuntu 下 nginx-1.24.0 源码分析 - ngx_process_options
运维·nginx
s_fox_18 小时前
nginx ngx_http_module(9) 指令详解
运维·nginx·http