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

配置后即可正常提交

相关推荐
qq_281317471 小时前
nginx安装配置、故障处置、性能优化
运维·nginx
q***98525 小时前
【保姆级教程】apache-tomcat的安装配置教程
java·tomcat·apache
未来的旋律~5 小时前
nginx
运维·网络·nginx
DolphinScheduler社区6 小时前
Apache DolphinScheduler 新增 gRPC 任务插件 | 开源之夏成果总结
大数据·开源·apache·海豚调度
我有毓毓症7 小时前
nginx作业
运维·nginx
Monody_R7 小时前
rhce作业
linux·服务器·apache
CodeBlossom7 小时前
Apache POI
apache
q***71857 小时前
海康威视摄像头RTSP使用nginx推流到服务器直播教程
运维·服务器·nginx
数新网络17 小时前
The Life of a Read/Write Query for Apache Iceberg Tables
人工智能·apache·知识图谱
AI分享猿19 小时前
雷池 WAF 免费版实测:企业用 Apache 搭环境,护住跨境电商平台
web安全·github·apache