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

配置后即可正常提交

相关推荐
大E帝国子民16 小时前
OpenCloudOS Server 9 安装 Nginx 完整指南
前端·网络·nginx
她说..10 小时前
Apache Commons Lang3 Pair 完整版实战详解
java·spring·java-ee·apache·springboot
Chengbei1111 小时前
VMware Workstation Pro 26H1免费虚拟化利器
运维·安全·web安全·自动化·系统安全·apache·安全架构
weixin_307779131 天前
Linux下Nginx故障系统化检查Shell脚本
linux·运维·服务器·nginx·自动化
mashirro1 天前
gateway服启动输出台显示
gateway
小南家的青蛙1 天前
使用Nginx中配置CRL
nginx·crl
从此以后自律1 天前
项目 Docker + Nginx 云端完整部署细节
nginx·docker·容器
充钱大佬2 天前
Python测试基础教程
python·log4j·apache
donoot2 天前
一次 Nginx 502 问题的深度排查:从 SELinux 到容器网络
nginx·docker·selinux·反向代理·502 bad gateway
豆瓣鸡2 天前
网关、服务 userId 透传
java·微服务·gateway