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

配置后即可正常提交

相关推荐
chehaoman9 小时前
Failed to restart nginx.service Unit nginx.service not found
运维·nginx
今晚务必早点睡11 小时前
Nginx 从入门到精通:一篇讲透原理、功能、配置与实战场景
运维·nginx·负载均衡
givemeacar11 小时前
Nginx如何实现 TCP和UDP代理?
tcp/ip·nginx·udp
码克疯v111 小时前
OpenClaw 安装与入门:从零到跑通 Gateway(详细可操作)
gateway·openclaw·龙虾
xuefeiniao12 小时前
Docker 部署宝塔面板 Nginx 反向代理 502 踩坑实录
nginx·docker·容器
yaaakaaang14 小时前
(一)前端,如此简单!---下载Nginx
前端·nginx
金融小师妹16 小时前
基于AI多因子与流动性模型的黄金再定价分析:4500关口修复后的“黄金坑”是否成立?
大数据·svn·能源
金融小师妹18 小时前
基于AI航运与能源数据模型的极端收缩分析:霍尔木兹海峡从2000万桶到130万桶的结构性断层
大数据·深度学习·svn·能源
jessecyj20 小时前
Nginx中$http_host、$host、$proxy_host的区别
运维·nginx·http
skiy20 小时前
Nginx搭建负载均衡
运维·nginx·负载均衡