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

配置后即可正常提交

相关推荐
一勺菠萝丶4 小时前
生产环境平滑升级实战-Nginx维护页数据库迁移与安全回滚
数据库·nginx·安全
Helen_cai11 小时前
OpenHarmony 路由封装 RouterUtil 页面跳转统一管理(API Version23+)
运维·服务器·nginx·华为·harmonyos
Zhu75812 小时前
在k8s环境部署Apache Kafka 集群架构,combined模式,无SSL配置
kafka·kubernetes·apache
云计算磊哥@13 小时前
运维开发宝典055-大型网站nginx服务器管理全集1
服务器·nginx·运维开发
Zhu75814 小时前
在k8s环境部署Apache kafka4.3.1
容器·kubernetes·apache
qq_1631357514 小时前
Apache NIFI MergeContent
apache
碎碎念_4921 天前
前后端分离项目开发规范
nginx·vue·springboot·restful
刘某的Cloud1 天前
手工配置nginx的systemd服务
linux·运维·网络·nginx·systemd
刘某的Cloud1 天前
Nginx 最小安全配置模板
linux·运维·nginx·安全·系统