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;
}

配置后即可正常提交

相关推荐
q***01772 小时前
Nginx如何实现 TCP和UDP代理?
tcp/ip·nginx·udp
可爱又迷人的反派角色“yang”5 小时前
Mysql数据库(二)
运维·服务器·前端·数据库·mysql·nginx·云计算
小玉不愚鸭5 小时前
nginx中的https的搭建
运维·nginx·https
羊村积极分子懒羊羊5 小时前
nginx的https的搭建
运维·nginx·https
k***08297 小时前
Gateway Timeout504 网关超时的完美解决方法
gateway
vortex58 小时前
基于 Apache 规则拦截目录扫描器请求:实测与配置指南
linux·网络安全·apache
m***56728 小时前
在Nginx上配置并开启WebDAV服务的完整指南
java·运维·nginx
观望过往8 小时前
Apache IoTDB 连续查询(CQ)全解析
apache·iotdb
为什么要内卷,摆烂不香吗9 小时前
Linux 宝塔面板快速简单创建自己的网站
运维·服务器·nginx·阿里云
NF禾凡9 小时前
练习nginx 的https的搭建
运维·nginx