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

配置后即可正常提交

相关推荐
盛夏绽放7 小时前
流式响应 线上请求出现“待处理”问题
前端·后端·nginx·proxy
%258 小时前
Nginx
运维·nginx
坤虫debug9 小时前
Nginx 模块和指令的区别:http/server/location 不是模块,是指令
nginx
wfj12611 小时前
服务器部署,用 nginx 部署后页面刷新 404 问题,宝塔面板修改(修改 nginx.conf 配置文件)
运维·服务器·nginx
匀泪11 小时前
云原生(nginx环境设定)
java·nginx·云原生
unirst198500712 小时前
nginx中的proxy_set_header参数详解
运维·网络·nginx
IT布道12 小时前
基于Rocky Linux制作Apache HTTPD 2.4.66 的RPM安装包
linux·运维·apache
dinga1985102612 小时前
当遇到 502 错误(Bad Gateway)怎么办
gateway
岳来12 小时前
网络小白对容器参数endpoint 和gateway 对比
网络·docker·容器·gateway·endpoint
市安13 小时前
基于Centos构建Nginx镜像(Dokerfile)
linux·运维·nginx·docker·容器·centos·镜像