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

配置后即可正常提交

相关推荐
IT枫斗者3 小时前
AI Coding 蜜月期之后,我们重新思考了 AI 提效
java·开发语言·人工智能·gateway·fastapi
杜子不疼.18 小时前
从 Apache HTTP Server 到 CivetWeb:在鸿蒙 PC 的 3.1 MiB HAP 里嵌入 Web 服务器
前端·apache·harmonyos
顧棟1 天前
INFINI Gateway 启动过程分析
服务器·网络·gateway
wno7042 天前
Nginx禁止蜘蛛程序访问
运维·nginx
解道Jdon3 天前
Rust重写OpenCode Rune:性能提升最高100倍
ide·windows·git·svn·eclipse·github·visual studio
钱栈up3 天前
现场部署6个服务菜单全挂:根因不在后端,在前端那个环境变量
mysql·nginx
行思理4 天前
Nginx如何检查是否启用“启用 HTTP/2”
运维·nginx·http
Csvn4 天前
Nginx 故障案例库:16 张卡的现象、证据、根因与防复发
后端·nginx
梅雅达编程笔记4 天前
开发机能跑,服务器上跑不起来:MYD 考试系统配置设计与上线清单
mysql·nginx·flask·gunicorn·毕设项目·部署上线
op_qo5 天前
写了几年 OpenResty Lua 网关脚本,聊聊绕不开的 5 个痛点与一种新解法
nginx