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

配置后即可正常提交

相关推荐
難釋懷19 小时前
Nginx对客户端的限制
运维·nginx
Full Stack Developme20 小时前
Apache Tika 教程
java·开发语言·python·apache
楠目20 小时前
CVE-2017-7529 Nginx Range头整数溢出漏洞利用总结
运维·nginx
laplaya1 天前
C++大型项目组件通信与依赖管理实践
c++·log4j·apache
難釋懷1 天前
Nginx缓冲区
前端·javascript·nginx
ElevenS_it1882 天前
Nginx日志监控告警实战:access_log解析+5xx突增+慢请求+异常IP自动告警完整方案(Filebeat+Zabbix)
运维·网络·tcp/ip·nginx·zabbix
万岳科技2 天前
教育培训小程序如何构建线上线下一体化教学体系
小程序·apache
半夜燃烧的香烟2 天前
docker 安装minio nginx,配置nginx根据文根路由minio展示图片
java·nginx·docker
yyuuuzz2 天前
云服务器软件部署的几个常见问题
运维·服务器·开发语言·网络·云计算·php·apache
分布式存储与RustFS2 天前
Apache Iceberg数据湖轻量化搭建:基于Rust开源存储方案
开源·apache·iceberg·rustfs·ai存储·ai memory·s3 table