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

配置后即可正常提交

相关推荐
wangjialelele1 天前
Spring Cloud 全体系学习笔记(REST、Nacos、Feign、Gateway)
java·spring boot·笔记·学习·spring·spring cloud·gateway
行业研究员2 天前
腾讯位置服务核心功能与应用场景解析
apache·lbs·腾讯位置服务
小张同学a.2 天前
zabbix企业级监控平台3——服务监控与API实战
linux·运维·mysql·nginx·tomcat·zabbix
Archy_Wang_12 天前
LVS+KeepAlived+Nginx实现企业级业务高可靠部署的实战教程
运维·nginx·lvs
Ai拆代码的曹操2 天前
Nginx upstream keepalive 连接池中毒排查实录
chrome·nginx·php
空谷有来人3 天前
Ubuntu22.04上安装配置站点
nginx
PC2005-cloud3 天前
KubeSphere学习笔记:部署nginx
笔记·学习·nginx
后除3 天前
Debian 安装与使用 Certbot
后端·nginx·https
风雨_833 天前
轻量级 Nginx 日志分析和可视化平台 NginxPulse安装
运维·nginx