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

配置后即可正常提交

相关推荐
yangmf20401 小时前
如何使用 INFINI Gateway 增量迁移 ES 数据
大数据·数据库·elasticsearch·搜索引擎·gateway
Wang's Blog2 小时前
Linux小课堂: Apache虚拟主机配置之基于IP与域名的服务器部署指南
linux·服务器·apache
Wang's Blog2 小时前
Linux小课堂: Apache服务在CentOS上的安装与基础配置指南
linux·centos·apache
宁&沉沦4 小时前
Nginx清除浏览器缓存的三个缓存响应头的关系详解
运维·nginx·缓存
DolphinScheduler社区6 小时前
小白指南:Apache DolphinScheduler 补数据功能实操演示
java·大数据·开源·apache·海豚调度·大数据工作流调度
北邮-吴怀玉6 小时前
3.1.1.1 大数据方法论与实践指南-开源工具说明-Apache NiFi
大数据·开源·apache
yzhSWJ8 小时前
直接使用docker中的nginx
nginx·docker·eureka
耿雨飞16 小时前
NGINX 负载均衡应用实战:从配置到策略的深度解析
nginx
Apache Flink18 小时前
理想汽车基于 Hologres + Flink 构建万亿级车联网信号实时分析平台
阿里云·flink·apache
Wang's Blog19 小时前
Linux小课堂: NGINX反向代理服务器配置与实践
linux·运维·nginx