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

配置后即可正常提交

相关推荐
wuxinyan1232 小时前
Java面试题47:一文深入了解Nginx
java·nginx·面试题
小敬爱吃饭2 小时前
Ragflow Docker部署及问题解决方案(界面为Welcome to nginx,ragflow上传文件失败,Docker中的ragflow-cpu-1一直重启)
人工智能·python·nginx·docker·语言模型·容器·数据挖掘
一个天蝎座 白勺 程序猿2 小时前
Apache IoTDB(15):IoTDB查询写回(INTO子句)深度解析——从语法到实战的ETL全链路指南
数据库·apache·etl·iotdb
戮戮5 小时前
Spring Cloud Gateway 零拷贝参数校验:一种高性能网关架构实践
java·网络·架构·gateway
曹牧5 小时前
svn:“relocate”操作中出现“no uuid but wc has”的错误
svn
龙卷风卷云6 小时前
【BUG】Nginx使用upstream后端接口报 400
运维·nginx·bug
Java面试题总结7 小时前
Nginx 配置笔记
运维·笔记·nginx
曹牧7 小时前
svn: svn relocate ‌之externals‌
数据结构·svn
cyber_两只龙宝8 小时前
【Nginx】Nginx配置负载均衡详解
linux·运维·nginx·云原生·负载均衡
记忆张量MemTensor8 小时前
SkillsVote:从技能目录走向终极技能网关(Ultimate Skill Gateway)
gateway