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

配置后即可正常提交

相关推荐
杨云龙UP11 小时前
Linux 根分区被日志吃满?一次 58G Broker 日志清理实战_2026-05-20
linux·运维·服务器·数据库·hdfs·apache
未若君雅裁21 小时前
微服务限流实战:Nginx 漏桶与网关令牌桶
java·nginx·微服务
bug-1008621 小时前
为什么history模式默认会请求后端资源?
前端·vue.js·nginx
IT布道1 天前
[Web安全] SVG文件上传风险与Apache防御配置实践
web安全·apache·xss
卷Java1 天前
DeepSeek V4 开源 Apache 2.0 之后,闭源模型还香吗?
开源·apache
源远流长jerry1 天前
LVS 与 Nginx 负载均衡:从原理到生产实战
运维·网络·网络协议·tcp/ip·nginx·负载均衡·lvs
r-t-H1 天前
KVM虚拟化与Docker基础实践-第三章
linux·运维·nginx·docker·容器
zhojiew1 天前
在AWS中国区使用NYC Taxi数据集在Apache Flink(KDA)中实现流数据处理管道的实践
flink·apache
a752066281 天前
Windows 11运行OpenClaw(小龙虾)完整指南:从下载到Gateway在线
人工智能·windows·gateway·小龙虾·ai 办公自动化·小龙虾一键部署
難釋懷2 天前
Nginx虚拟主机
git·nginx·github