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

配置后即可正常提交

相关推荐
不想努力只想躺平的菜鸟ing7 小时前
svn使用指南
svn
前端程序猿i11 小时前
Nginx 教程:从入门到能上线
运维·nginx
明辰之林11 小时前
Nginx 1.26.2 → 1.30.2 升级指南(离线环境)
nginx
小云小白14 小时前
企业抗量子落地指南(一)全链路抗量子 TLS1.3 落地指南(浏览器 → Nginx → SpringBoot)
spring boot·nginx·抗量子通信
tobias.b15 小时前
JumpServer4\.10\.16离线部署\+外部Nginx反向代理 解决30分钟空闲断开WebSocket超时(延长10天)
运维·websocket·nginx
就叫_这个吧16 小时前
servlet整合tomcat项目启动报错解决,org.apache.tomcat.util.descriptor.web.WebXml.setVersion
java·servlet·tomcat·apache
衫水16 小时前
Windows Server Nginx 代理企业内网 API 偶发超时处理与保活 SOP(20260608))
运维·windows·nginx
佛山个人技术开发18 小时前
GitCode个人技术开发者总结完整使用指南
windows·git·svn·github·gitcode
云器科技18 小时前
Apache Iceberg-cpp:原生性能架构与演进路线
架构·apache
Par@ish18 小时前
Ubuntu Apache日志存储周期变更
linux·ubuntu·apache