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实验(4))
运维·nginx·云原生
FJW02081413 小时前
《Nginx 进阶实战:配置详解、站点发布与常用功能大全》(2)
运维·nginx
一个向上的运维者14 小时前
基于k8s的KServe 控制平面生产级部署最佳实践:基于 Gateway API 的标准化流量管理方案
llm·gateway·istio·kserve
问道飞鱼14 小时前
【服务器知识】nginx配置负载均衡完全解读
服务器·nginx·负载均衡
一叶星殇21 小时前
Windows 下用 Nginx 部署 Vue + .NET WebApi 全流程实战
vue.js·windows·nginx
努力也学不会java1 天前
【Spring Cloud】统一服务入口-Gateway
后端·算法·spring·spring cloud·gateway·服务发现
匀泪1 天前
云原生(nginx实验(3))
运维·nginx·云原生
vortex51 天前
在 Apache 中完整开启 .shtml (SSI) 解析
apache
hzc09876543211 天前
Linux系统下安装配置 Nginx 超详细图文教程_linux安装nginx
linux·服务器·nginx
匀泪2 天前
云原生(nginx实验(2))
运维·nginx·云原生