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

配置后即可正常提交

相关推荐
Exquisite.1 天前
企业高性能web服务器---Nginx(2)
服务器·前端·nginx
啟明起鸣1 天前
【Nginx 网关开发】从源码分析 Nginx 的多进程启动原理
运维·nginx
啟明起鸣1 天前
【Nginx 网关开发】上手 Nginx,简简单单启动一个静态 html 页面
运维·c语言·前端·nginx·html
MACKEI1 天前
服务器流式传输接口问题排查与解决方案
python·nginx·流式
曹牧1 天前
Nginx:正向代理与反向代理
运维·nginx
小宇的天下1 天前
Cadence allegro---assign net
服务器·php·apache
莫大3302 天前
2核2G云服务器PHP8.5+MySQL9.0+Nginx(LNMP)安装WordPress网站详细教程
运维·服务器·nginx
银发控、2 天前
nginx静态资源
运维·nginx
熊猫钓鱼>_>2 天前
动态网站发布部署核心问题详解
前端·nginx·容器化·网页开发·云服务器·静态部署
软件派2 天前
Apache Paimon终极教程——流批一体存储引擎深度解析(附Flink集成案例+性能调优代码)
apache·性能调优·流批一体·实时数据处理·paimon教程·flink集成·湖仓架构