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

配置后即可正常提交

相关推荐
铃木隼.3 小时前
Web技术与Nginx网站环境部署
前端·nginx·php
Swn_5 小时前
win10使用nginx做简单负载均衡测试
nginx·tomcat·apache·负载均衡
Clownseven6 小时前
[Nginx排查] 403 Forbidden错误怎么破?Nginx权限与配置问题深度解析
运维·nginx
blammmp7 小时前
Spring Cloud:Gateway(统一服务入口)
spring·spring cloud·gateway
高峰聚焦11 小时前
【Nextcloud】使用 LNMP 架构搭建私有云存储:Nextcloud 实战指南
linux·服务器·nginx·架构
小程序照片合成21 小时前
window xampp apache使用腾讯云ssl证书配置https
apache·腾讯云·ssl
Nerd Nirvana1 天前
网关GateWay——连接不同网络的关键设备
网络·mqtt·计算机网络·gateway·路由器·modbus·电力设备
Hello.Reader1 天前
使用 NGINX 的 `ngx_http_secure_link_module` 模块保护资源链接
运维·nginx·http
Paran-ia1 天前
【2025版】SpringCloud Gateway网关快速入门
spring·spring cloud·gateway
向上的车轮1 天前
Nginx基础知识
运维·nginx