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

配置后即可正常提交

相关推荐
The Electronic Cat4 小时前
树莓派安装nginx
运维·chrome·nginx
先生沉默先6 小时前
Docker+Nginx+Node.js 全栈容器化部署
nginx·docker·node.js
Evan芙6 小时前
Nginx安全相关的参数总结
运维·nginx·安全
骚戴7 小时前
架构设计之道:构建高可用的大语言模型(LLM) Enterprise GenAI Gateway
java·人工智能·架构·大模型·gateway·api
irisart7 小时前
第一章【基石与起源】—— NGINX 架构设计与工作模式
nginx
猫豆~7 小时前
Nginx代理负载均衡——3day
运维·nginx·负载均衡
Q的世界8 小时前
nginx反向代理负载均衡tomcat多实例
运维·nginx·负载均衡
ShayneLee88 小时前
Nginx修改请求头响应头
android·运维·nginx
武帝为此1 天前
【NGINX 介绍与安装】
运维·nginx