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

配置后即可正常提交

相关推荐
MiNG MENS9 小时前
nginx 代理 redis
运维·redis·nginx
珊瑚怪人10 小时前
一个域名问题
nginx
dxdz12 小时前
一文搞定 Linux Nginx 从安装、启动到 nginx.conf 全配置详解(新手也能看懂)
nginx
遇见火星13 小时前
Nginx 负载均衡配置模板:轮询、权重、IP哈希、最少连接
tcp/ip·nginx·负载均衡
nvd1114 小时前
企业级全场景 API 网关实践:基于 Kong Hybrid 模式的跨 VPC 部署与 GitOps 治理
gateway·kong
nvd1114 小时前
深度解析:Kong Hybrid 模式与 KIC (Gateway API) 架构演进与核心异同
架构·gateway·kong
untE EADO15 小时前
Nginx代理到https地址忽略证书验证配置
运维·nginx·https
zx28596340016 小时前
Laravel10.x重磅升级:核心特性全解析
mysql·gateway·智能路由器
Treh UNFO17 小时前
nginx的重定向
大数据·数据库·nginx
理人综艺好会17 小时前
nginx了解
运维·nginx