技术栈

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
相关推荐
锋行天下
16 小时前
让nginx网关扛下所有攻击
前端·后端·nginx
代码熬夜敲Q
18 小时前
Nginx相关
运维·服务器·nginx
西凉的悲伤
18 小时前
Spring Cloud Gateway介绍
java·spring cloud·gateway
念何架构之路
18 小时前
接入层Nginx
运维·nginx
MageGojo
1 天前
小程序每日一谜怎么做:riddle 接口接入示例
windows·小程序·apache·谜语
隔窗听雨眠
1 天前
Nginx网关响应慢排查手记
java·服务器·nginx
難釋懷
1 天前
Nginx自签名-图形化工具 XCA
运维·nginx
songjxin
1 天前
Nginx 日志分析可视化面板
运维·nginx
qq_31292011
2 天前
如何将Nginx响应时间从500ms降至50ms
运维·nginx
热门推荐
01GitHub 镜像站点02【踩坑记录 | 第一篇】微软商店无法使用时,如何手动安装 OpenAI Codex?附`.msix`文件系统错误解决方法03【AI】2026 年具身智能模型和世界模型总结04DeepSeek V4 + Claude Code thinking mode 400 错误修复方案05Codex 接入 DeepSeek API 完整配置文档06裂开!ChatGPT 居然开始要手机号验证,附详细解决方法07CC-Switch & Claude 基于 Linux 服务器安装使用指南08几个好用的ip纯净度检测网站09API Key 登录 Codex 也能用插件了,还支持会话删除和导出10CC-Switch 全平台下载、安装与使用全指南(Windows/macOS/Linux)