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

配置后即可正常提交

相关推荐
解道Jdon15 分钟前
Rust重写OpenCode Rune:性能提升最高100倍
ide·windows·git·svn·eclipse·github·visual studio
钱栈up7 小时前
现场部署6个服务菜单全挂:根因不在后端,在前端那个环境变量
mysql·nginx
Csvn14 小时前
Nginx 故障案例库:16 张卡的现象、证据、根因与防复发
后端·nginx
梅雅达编程笔记1 天前
开发机能跑,服务器上跑不起来:MYD 考试系统配置设计与上线清单
mysql·nginx·flask·gunicorn·毕设项目·部署上线
op_qo2 天前
写了几年 OpenResty Lua 网关脚本,聊聊绕不开的 5 个痛点与一种新解法
nginx
Johny_Zhao3 天前
Keepalived与Nginx架构选型
linux·nginx·信息安全·云计算·apache·shell·yum源·keepalive·系统运维
Csvn3 天前
Nginx 可观测性与工程化:指标、告警与发布回滚演练
后端·nginx
Joy T3 天前
OpenClaw:个人 AI Agent 的运行架构、Skills 与工具管理
架构·gateway·plugin·channel·openclaw·agent runtime
橘子☆心酸4 天前
Git 的自我修养
git·svn·gitee
Csvn4 天前
Nginx 高可用网关:VIP 切换、proxy_protocol 与 SNI 分流实战
后端·nginx