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

配置后即可正常提交

相关推荐
unDl IONA7 小时前
服务器部署,用 nginx 部署后页面刷新 404 问题,宝塔面板修改(修改 nginx.conf 配置文件)
运维·服务器·nginx
splage11 小时前
Nginx 反向代理之upstream模块以及完整配置反向代理示例
git·nginx·github
uNke DEPH13 小时前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
Tisfy15 小时前
CORS 跨域重定向后 Origin 变 null —— 一次 Nginx 字体加载失败的排查记录
运维·nginx·html·cors
福大大架构师每日一题16 小时前
nginx 1.30.0稳定版深度解析:Early Hints、HTTP/2后端、MPTCP全量上线,1.29.x分支精华全面整合
运维·nginx·http
繢鴻16 小时前
Nginx 配置顺序错误
运维·nginx·阿里云·持续部署
Pocker_Spades_A18 小时前
每天刷十几个平台的热榜太累了?我用一个页面全部搞定
nginx
Jaygee-18 小时前
个人网盘越来越贵?我用 Nginx 自建了一个 WebDAV
运维·nginx
ERBU DISH1 天前
当遇到 502 错误(Bad Gateway)怎么办
gateway
农村小镇哥1 天前
nginx服务器的介绍
运维·服务器·nginx