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

配置后即可正常提交

相关推荐
tzy23313 小时前
Nginx 的重定向规则
nginx·location·return·302·301·rewrite·last
明月_清风16 小时前
Nginx 模块机制深度解析:从核心原理到生产实践
前端·nginx
明月_清风19 小时前
Nginx 生产环境配置完全指南:从安全加固到性能调优
前端·nginx
huipeng92620 小时前
GateWay使用详解
java·spring boot·spring cloud·微服务·gateway
zzzb12345621 小时前
WSL(Ubuntu)部署Nginx\+PHP8\.2完整教程(新手友好\+避坑指南)
linux·nginx·ubuntu·php
长沙红胖子Qt21 小时前
SVN培训笔记(四):使用sourceTree时,PC硬盘或者移动硬盘更换电脑后sourceTree无法拉取同步和推送已有项目管理的处理方法
svn·sourcetree管理svn·sourcetree迁移git·git svn
加号31 天前
Nginx 实现负载均衡:从原理到实践的完整指南
运维·nginx·负载均衡
家有娇妻张兔兔1 天前
Apache POI 导出 Word 踩坑实录:Word 分栏为什么做不好左右平铺
c#·word·apache·poi·分栏
HashData酷克数据1 天前
官宣:Apache Cloudberry (Incubating) 2.1.0 正式发布!
apache
weixin_394758031 天前
直播间小程序码生成问题修复代码清单
android·小程序·apache