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

配置后即可正常提交

相关推荐
難釋懷11 小时前
Nginx防盗链配置
运维·nginx
阿里云云原生12 小时前
Apache RocketMQ 5.5.0 发布:LiteTopic 深度解析,如何支撑百万级 AI 会话并发?
apache·rocketmq
Nian.Baikal12 小时前
从零搭建离线地图服务:Nginx + Cesium/Leaflet 实战指南
运维·前端·nginx
身如柳絮随风扬15 小时前
Docker 部署 Nginx:从入门到生产级配置实战
nginx·docker·容器
夏天测15 小时前
【高危漏洞通告】NGINX ngx_http_rewrite_module 堆缓冲区溢出漏洞;详解与修复方案
运维·nginx·http
FallenQu16 小时前
【漏洞】CVE-2026-42945:NGINX ngx_http_rewrite_module 堆缓冲区溢出深度分析
运维·nginx·http
UrSpecial17 小时前
从零实现Nginx风格内存池
nginx·内存池
_柒安19 小时前
macsvn:Mac 上的 SVN 客户端工具介绍
macos·svn
IT策士21 小时前
Django 从 0 到 1 打造完整电商平台:Nginx + uWSGI 部署 Django 项目
nginx·django·sqlite
清平乐的技术专栏21 小时前
【Doris从零到一】(一)Apache Doris 概述
apache