技术栈

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
相关推荐
En^_^Joy
5 小时前
Nginx 从入门到精通:配置、原理与实战详解
运维·nginx
2601_96212826
15 小时前
Nginx目录结构
运维·nginx
2601_96212297
19 小时前
nginx 部署前端vue项目
前端·vue.js·nginx
2601_96212826
1 天前
Nginx知识详解(理论+实战更易懂)
运维·nginx
2601_96207157
1 天前
SpringCloud篇(服务网关 - GateWay)
spring boot·spring cloud·gateway
2601_96206549
1 天前
interface GigabitEthernet0/0/0
服务器·php·apache
2601_96220351
1 天前
Nginx 安装配置
运维·nginx
2601_96218960
1 天前
【SpringCloud】Gateway
java·spring cloud·gateway
小谈不敲代码
2 天前
Higress 生产级调优手册
云原生·kubernetes·gateway·负载均衡·higress
热门推荐
01国内可直接用、免费额度/永久免费的大模型API清单(含 SiliconFlow、火山、阿里、智谱、百度、Kimi、DeepSeek、DMXAPI 等)02ZCode 周末送额度活动开启:3 亿 Token 免费领取03GitHub 镜像站点042026 国产 AI 大模型横评:DeepSeek、通义千问、Kimi、文心一言、星火、豆包谁更能打?05历年考研数学一、数学二、数学三真题试卷及答案PDF06微信历史版本含下载地址( Windows PC | 安卓 | MAC )及设置微信不更新07AI 编程 IDE 全景解析 2026:Agent 全面接管开发链路08Agnes AI 免费 API 接入指南:文本、生图、生视频,一套接口全免费09蜘蛛磁力 搜索引擎大全,如何使用蜘蛛磁力查找磁力链接10VSCode+CodeX扩展,无法启动