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

配置后即可正常提交

相关推荐
finyouIT8 小时前
限制国外ip访问网站
nginx
qq_3129201115 小时前
高并发防护:Nginx 流量控制
nginx
万岳科技系统开发15 小时前
互联网医院小程序搭建如何快速上线?完整建设方案解析
小程序·apache
秋漓16 小时前
Nginx学习与应用
运维·学习·nginx
skywalk816320 小时前
nginx的配置软件Nginx UI
运维·nginx·ui
NGINX开源社区1 天前
NGINX Ingress Controller 中的 Cache Policy:VirtualServer 实战指南
java·前端·nginx
johnny2331 天前
Nginx可视化管理工具:NPM、nginx config、Nginx UI、NginxWebUI、Nginx Pulse
nginx
YJlio1 天前
OpenClaw 2026.5.2 Beta 更新解读:外部插件安装、ClawHub / npm 切换与 Gateway 性能优化
性能优化·npm·gateway·飞书·多维表格·飞书aily·飞书妙搭
v***59831 天前
SpringCloud实战十三:Gateway之 Spring Cloud Gateway 动态路由
java·spring cloud·gateway
团子的二进制世界1 天前
Gateway :微服务架构的核心网关
微服务·架构·gateway