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

配置后即可正常提交

相关推荐
BelongPanda16 小时前
Linux Nginx 纯手动 Let‘s Encrypt 泛域名证书配置教程
linux·nginx
Zhu75816 小时前
在k8s环境部署Apache Superset最新版
容器·kubernetes·apache
Zhu75817 小时前
在k8s环境部署Apache zookeeper3.9.5,高可用,多pod
容器·kubernetes·apache
郝亚军1 天前
nginx的三个基础库:PCRE、OpenSSL、Zlib的安装
linux·服务器·nginx
CodexDave1 天前
MySQL事务隔离级别与MVCC机制解析
前端·数据库·mysql·nginx·性能优化·负载均衡
chexus2 天前
20. 深入 Nginx 信号处理
linux·c语言·网络·nginx
tryxr2 天前
Spring Cloud Gateway
java·开发语言·数据库·网关·spring cloud·gateway
名字还没想好☜3 天前
Nginx 反向代理与负载均衡配置实战
运维·nginx·负载均衡
Jay Kay3 天前
SGLang Model Gateway 特性详解(Cache-Aware 之外)
gateway·sglang
程序猿乐锅3 天前
【苍穹外卖 day11|统计报表接口与 Apache ECharts 图表展示】
前端·apache·echarts