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

配置后即可正常提交

相关推荐
dozenyaoyida6 小时前
svn异常锁死处理方法
svn·svn异常·svn被锁·经验案例
七七powerful9 小时前
loki监控docker容器&系统&nginx日志的告警规则
nginx·docker·容器
dovens13 小时前
httpslocalhostindex 配置的nginx,一刷新就报404了
运维·nginx
想你依然心痛13 小时前
大数据时代时序数据库选型指南:Apache IoTDB 的实战进阶与避坑法则
大数据·apache·时序数据库
接着奏乐接着舞15 小时前
gateway
gateway
riNt PTIP15 小时前
Ubuntu 系统下安装 Nginx
数据库·nginx·ubuntu
李白你好16 小时前
ActiveMQ-EXPtools支持检测和利用Apache ActiveMQ漏洞
apache·activemq
wellc17 小时前
Nginx作用以及应用场景
运维·nginx
lclcooky17 小时前
Nginx代理到https地址忽略证书验证配置
运维·nginx·https
草木红18 小时前
Vue3 + Docker + Nginx 完整部署流程
nginx·docker·容器