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

配置后即可正常提交

相关推荐
xmlhcxr4 小时前
Nginx(一)
运维·nginx
知识即是力量ol7 小时前
微服务架构:从入门到进阶完全指南
java·spring cloud·微服务·nacos·架构·gateway·feign
lzhailb8 小时前
nginx
运维·nginx
my_styles9 小时前
window系统安装/配置Nginx
服务器·前端·spring boot·nginx
忙碌54411 小时前
OpenTelemetry实战指南:构建云原生全链路可观测性体系
ios·flink·apache·iphone
j2001032212 小时前
Gateway—— 高级流量路由
gateway·k8s
troublea12 小时前
Laravel9.X新特性全解析
nginx
许愿OvO13 小时前
大规模Web服务Nginx核心配置与性能优化实战
linux·nginx·性能优化
笨蛋不要掉眼泪13 小时前
Spring Cloud Gateway 核心篇:深入解析过滤器(Filter)机制与实战
java·服务器·网络·后端·微服务·gateway
笨蛋不要掉眼泪13 小时前
Spring Cloud Gateway 扩展:全局跨域配置
java·分布式·微服务·架构·gateway