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

配置后即可正常提交

相关推荐
a8a30213 小时前
Laravel9.x新特性全解析
运维·spring boot·nginx
L16247616 小时前
Nginx 6 种发布方式(滚动发布、蓝绿发布(Blue/Green)、金丝雀发布(Canary 灰度)等) 实操全集(配置 + 分步操作 + 回滚)
运维·nginx
a8a30216 小时前
Laravel5.x进化史:核心特性全解析
nginx·php·laravel
SuperherRo18 小时前
服务攻防-中间件安全&Apache&Tomcat&Jetty&Weblogic&AJP协议&反序列化&CVE漏洞
中间件·tomcat·apache·jetty·weblogic
日取其半万世不竭19 小时前
用云服务器部署 Hexo 博客,Nginx 托管静态页面全流程
运维·服务器·nginx
hanyi_qwe19 小时前
Mysql 与 Nginx 双机高可用
数据库·mysql·nginx
Densen201420 小时前
企业H5站点升级PWA (三)
前端·nginx·c#
Ribou21 小时前
Kubernetes v1.35.2 基于 Cilium Gateway API 的服务访问架构
架构·kubernetes·gateway
回忆2012初秋1 天前
时序库.net平台下的推荐 SonnetDB,一文分析清除他与Apache IoTDB的区同
apache·iotdb
tzy2332 天前
Nginx 的重定向规则
nginx·location·return·302·301·rewrite·last