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

配置后即可正常提交

相关推荐
小句2 小时前
Nginx 配置完整指南
运维·nginx
学不完的2 小时前
Zrlog面试问答及问题解决方案
linux·运维·nginx·unity·游戏引擎
学不完的3 小时前
ZrLog 博客系统部署指南(无 War 包版,Maven 构建 + 阿里云镜像优化)
java·linux·nginx·阿里云·maven
金融小师妹3 小时前
基于AI多因子模型的黄金价格分析:9连跌后的反弹与约束机制解析
大数据·深度学习·svn·能源
伟大的大威3 小时前
彻底解决 Nginx Proxy Manager 反代 MinIO 报 SignatureDoesNotMatch (S3 签名不匹配) 的终极方案
运维·nginx·minio
秦渝兴3 小时前
从手工高可用到全容器化:我的 Keepalived+Nginx+Tomcat+MySQL 项目迁移实战
linux·运维·mysql·nginx·容器·tomcat
学不完的3 小时前
ZrLog 高可用反向代理架构
linux·运维·nginx·架构·负载均衡
半路_出家ren3 小时前
Nginx基础学习
运维·网络·网络协议·学习·nginx·网络安全
2301_807367194 小时前
Linux(CentOS)安装 Nginx
linux·nginx·centos
ZC1995924 小时前
Nginx更换ssl证书不生效
nginx·https·ssl