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

配置后即可正常提交

相关推荐
D愿你归来仍是少年2 小时前
Apache Spark 第 9 章:Spark 性能调优
大数据·spark·apache
standovon2 小时前
Gateway Timeout504 网关超时的完美解决方法
gateway
无名-CODING3 小时前
SpringCloud 网关与熔断:Gateway + Sentinel 快速入门
spring cloud·gateway·sentinel
ywlovecjy5 小时前
macOs安装docker且在docker上部署nginx+php
nginx·macos·docker
tumeng07115 小时前
Linux(CentOS)安装 Nginx
linux·nginx·centos
Hello.Reader6 小时前
Apache Arrow 在 PySpark 中的使用提速 Pandas 转换与 UDF 的关键武器
apache·pandas
回到原点的码农7 小时前
Failed to restart nginx.service Unit nginx.service not found
运维·nginx
会飞的大可7 小时前
022 API网关设计:Gateway路由、限流与鉴权实战
gateway
言之。7 小时前
Apache ZooKeeper 核心技术全解(面试+实战版)
zookeeper·面试·apache
siger1 天前
前端部署缓存策略实践
前端·nginx