技术栈

502 Bad Gateway with nginx + apache + subversion + ssl

HjmaAs2023-12-22 19:43

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

配置后即可正常提交

上一篇:实操keepalived+LVS,实现高可用、负载均衡群集
下一篇:vscode使用remote ssh到server上 - Node进程吃满CPU
相关推荐
可观测性用观测云
7 小时前
云原生网关 Ingress-Nginx 链路追踪实战:OpenTelemetry 采集与观测云集成方案
nginx·kubernetes
闲云一鹤
2 天前
nginx 快速入门教程 - 写给前端的你
前端·nginx·前端工程化
何中应
6 天前
Nginx转发请求错误
前端·后端·nginx
芝士雪豹只抽瑞克五
6 天前
Nginx 高性能Web服务器笔记
服务器·nginx
失重外太空啦
6 天前
nginx
运维·nginx
天蓝不会忘记02
6 天前
lvs,haproxy,keepalived,nginx,tomcat介绍和实验
nginx·tomcat·lvs
坐吃山猪
6 天前
OpenClaw04_Gateway常见问题
网络·gateway·openclaw
feng68_
6 天前
Nginx高性能Web服务器
linux·运维·服务器·nginx
unfeeling_
6 天前
Nginx实验
运维·nginx
热门推荐
01GitHub 镜像站点02OpenClaw 使用和管理 MCP 完全指南03OpenClaw + 飞书(Feishu)环境搭建指南04Claude Code + GLM4.7 避坑指南:解决 Unable to connect to Anthropic services05OpenClaw优化飞书API 额度已耗尽问题06Window 10部署openclaw报错node.exe : npm error code 12807小黑课堂计算机二级WPSoffice题库软件下载安装教程(2026年3月最新版)08Clawdbot部署教程:解决‘gateway token missing’授权问题的完整步骤09本地部署 OpenClaw + DeepSeek-R1 完全指南10网站改了域名,如何查找?