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

配置后即可正常提交

相关推荐
沉默-_-17 小时前
微信小程序页面配置详解
学习·微信小程序·apache·微信开发者工具
SeaTunnel18 小时前
Apache SeaTunnel MySQL CDC 支持按时间启动吗?
大数据·数据库·mysql·开源·apache·seatunnel
终端行者18 小时前
Nginx四层负载均衡配置 Stream模块使用
运维·nginx·负载均衡
长沙红胖子Qt20 小时前
SVN培训笔记(二):使用sourceTree通过git桥接管理svn项目
git·svn·sourcetree·sourcetree管理svn
凸头21 小时前
Nginx配置学习
运维·学习·nginx
南梦浅1 天前
Flask+Gunicorn+Nginx 校园众筹项目部署全流程(生产环境)
nginx·flask·gunicorn
Snower_20221 天前
CentOS 7 搭建 SVN 服务器(精简版教程)
linux·运维·服务器·svn·centos
卿着飞翔1 天前
win11安装配置nginx并部署ruoyi前端
运维·前端·nginx
xiaobangsky1 天前
使用Nginx配置本地静态资源iscweb访问后端服务fs-isc
运维·nginx
L1624761 天前
LVS+Keepalived+Nginx+Tomcat 高可用集群超详细配置手册
nginx·tomcat·lvs