前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Nginx+Apache+SSL+SVN svn copy 出现502 Bad Gateway

Nginx+Apache+SSL+SVN svn copy 出现502 Bad Gateway

作者头像
星哥玩云
发布2022-07-04 13:00:56
8490
发布2022-07-04 13:00:56
举报
文章被收录于专栏:开源部署

使用Nginx通过https方式访问SVN服务器,执行svn copy的时候出现以下错误: svn: Server sent unexpected return value (502 Bad Gateway) in response to COPY request for

解决办法:   location / {         proxy_redirect    off;         proxy_set_header  Host $host;         proxy_set_header  X-Forwarded-Host $host;         proxy_set_header  X-Forwarded-Server $host;         proxy_set_header  X-Real-IP        $remote_addr;         proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;         proxy_buffering    on;         set $fixed_destination $http_destination;         if ( $http_destination ~* ^https(.*)$ ) {             set $fixed_destination http$1;         }         proxy_set_header Destination $fixed_destination;         proxy_pass        http://127.0.0.1:88;     }

主要是增加了

set $fixed_destination $http_destination;         if ( $http_destination ~* ^https(.*)$ ) {             set $fixed_destination http$1;         }

Nginx 502错误触发条件与解决办法汇总 http://www.linuxidc.com/Linux/2014-08/105815.htm

502 bad gateway是什么意思?502 bad gateway怎么解决! http://www.linuxidc.com/Linux/2013-04/82075.htm

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档