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

配置后即可正常提交

相关推荐
q***133414 小时前
Linux(CentOS)安装 Nginx
linux·nginx·centos
大喵桑丶19 小时前
中间件快速部署(Nginx,Keepalived)
运维·nginx·中间件
赵瓶子姑娘1 天前
【无标题】
svn
pengzhuofan1 天前
Gateway微服务网关
微服务·架构·gateway
g***86691 天前
springcloud-eureka与gateway简易搭建
spring cloud·eureka·gateway
q***65691 天前
Nginx反向代理出现502 Bad Gateway问题的解决方案
运维·nginx·gateway
NGINX开源社区1 天前
将部署从 NGINX Ingress Controller 迁移至 NGINX Gateway Fabric
nginx·gateway·fabric
10km1 天前
java:Apache Commons Configuration2 占位符使用详解
java·apache·占位符·configuration2·commons·interpolator
h***06651 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
w***15311 天前
若依部署Nginx和Tomcat
运维·nginx·tomcat