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安全防护与HTTPS部署实战
nginx·安全·https
MadPrinter5 小时前
OpenClaw Gateway 卡死假死问题完整诊断与预防方案
gateway
刘晨鑫16 小时前
Nginx性能调优
运维·nginx
**蓝桉**6 小时前
prometheus监控nginx
nginx·elasticsearch·prometheus
D愿你归来仍是少年8 小时前
Apache Spark 第 3 章:核心概念 RDD / DataFrame
大数据·spark·apache
Liu.7749 小时前
vscode使用git和svn
git·vscode·svn
D愿你归来仍是少年10 小时前
Apache Spark 第 4 章:Spark 整体架构
spark·apache
sszdzq10 小时前
docker 安装 Nginx
nginx·docker·容器
D愿你归来仍是少年11 小时前
Apache Flink 算子(Operator)深度解析
大数据·flink·apache
RemainderTime11 小时前
(十一)Spring Cloud Alibaba 2023.x:构建分布式全链路日志追踪体系
分布式·微服务·架构·gateway