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成长日记5 小时前
【Nginx开荒攻略】Nginx虚拟主机配置:从域名、端口到IP的完整指南
linux·运维·服务器·nginx·虚拟主机
INFINI Labs14 小时前
Elasticsearch 备份:方案篇
大数据·elasticsearch·搜索引擎·gateway·snapshot·backup·ccr
lifallen17 小时前
从Apache Doris 学习 HyperLogLog
java·大数据·数据仓库·算法·apache
纤瘦的鲸鱼18 小时前
Spring Gateway 全面解析:从入门到进阶实践
java·spring·gateway
西贝爱学习18 小时前
【软件】nginx-1.28.0安装包(Windows版)
运维·nginx
DolphinScheduler社区18 小时前
# 3.1.8<3.2.0<3.3.1,Apache DolphinScheduler集群升级避坑指南
java·大数据·开源·apache·任务调度·海豚调度
zrande19 小时前
Nginx 负载均衡通用方案
nginx·负载均衡
小灰灰的可爱无人可替代1 天前
记录一次使用docker和docker-compose更新vue前端项目问题
nginx·docker·vue
会飞的鱼_1231 天前
设备管理平台项目全流程部署指南:从环境到ELK日志监控
nginx
雲帝1 天前
爱发电nginx转发企业微信webhook
nginx