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

配置后即可正常提交

相关推荐
陈皮糖..7 小时前
27 届运维实习笔记|第三、四周:从流程熟练到故障排查,企业运维实战深化
运维·笔记·sql·nginx·ci/cd·云计算·jenkins
空中海13 小时前
Nginx 知识体系 · 下篇:高级与实战
运维·nginx·spring
身如柳絮随风扬19 小时前
Nginx 入门教程:从安装到配置反向代理与负载均衡
运维·nginx·负载均衡
回忆2012初秋19 小时前
.NET 时序数据操作实战:Apache IoTDB连接与 CRUD 完全指南
.net·apache·iotdb
weixin_4307509319 小时前
部署FreeRadius+php+apache+mariaDB+daloradius 实现认证计费功能
php·apache·mariadb·daloradius·freeradius
IntMainJhy20 小时前
Flutter flutter_animate 第三方库 动画的鸿蒙化适配与实战指南
nginx·flutter·harmonyos
mfxcyh1 天前
使用MobaXterm配置nginx
java·服务器·nginx
阿里巴巴首席技术官1 天前
通过纯Nginx实现一个简单的文件上传功能
运维·nginx
就叫飞六吧1 天前
Docker Hub 上主流的nginx发行
java·nginx·docker
随风,奔跑1 天前
Spring Cloud Alibaba(四)---Spring Cloud Gateway
后端·spring·gateway