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

配置后即可正常提交

相关推荐
海兰27 分钟前
【Kafka进阶4】KRaft 完全指南:Apache Kafka 摆脱 ZooKeeper 的架构
zookeeper·kafka·apache
2601_967019511 小时前
如何选择合适的SSL证书类型?
apache
东风破_9 小时前
Docker 基础:为什么需要容器?
前端·后端·nginx
东风破_9 小时前
Docker 实战:使用 Nginx 作为容器入口代理 Node 服务
前端·后端·nginx
qq10916069811 天前
nginx+TongWeb 配置非443端口的https
网络·nginx·https
Raas1001 天前
MAI Gateway (魔芋企业级AI网关)支持哪些模型?AI网关多模型统一接入实战指南
人工智能·安全·gateway·企业级·ai网关
我变秃了也没变强1 天前
standalone模式部署flink集群
flink·apache
晨曦花锦1 天前
Vim基础操作与Ollama模型管理,顺便配置Nginx反向代理
linux·nginx·编辑器·vim
SelectDB技术团队1 天前
15 分钟搭建 PostgreSQL + Apache Iceberg + Apache Doris 的湖仓分析平台
数据库·postgresql·apache