[帮助文档] 如何处理ECS实例上访问网站提示的“Nginx 502 bad gateway”错误?

本文介绍在ECS实例上使用浏览器访问网站时,提示“Nginx 502 Bad Gateway”错误的问题原因和解决方案。

http请求使用代理,nginx 400 bad request

事件: 公司的安卓app部分接口使用抓包工具时,如Charles。 返回400错误。 后端使用nginx服务,php语言。 分析问题: 1、安卓不使用抓包工具,可以正常请求接口数据 2、nginx同时对android、ios提供服务,ios正常 3、安卓只有使用代理工具,才会出现400 有此可见, ...

Nginx企业级Web服务实战

11 课时 |
655 人已学 |
免费

Linux Web服务器Nginx搭建与配置

5 课时 |
13872 人已学 |
免费
开发者课程背景图

nginx服务器access日志中大量400 bad request错误

在access.log中有大量400错误,并以每天几百M的速度增加,占用大量空间.复制代码 代码如下: tail -f /opt/nginx/logs/access.log 116.236.228.180 - - [15/Dec/2010:11:00:15 +0800] "-" 400 0 "-" ...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"aliyun","productCardInfo":{"productTitle":"部署Nginx并通过Ingress暴露和监控服务","productDescription":"在阿里云容器服务(后简称ACK)集群中通过YAML文件快速部署一个Nginx应用并通过Nginx Ingress暴露和监控服务,结合使用ACK、日志服务、专有网络搭建业务部署运维方案。","productContentLink":"https://www.aliyun.com/solution/tech-solution/nginx_ingress","isDisplayProductIcon":true,"productButton1":{"productButtonText":"方案详情","productButtonLink":"https://www.aliyun.com/solution/tech-solution/nginx_ingress"},"productButton2":{"productButtonText":"一键部署","productButtonLink":"https://help.aliyun.com/document_detail/2400022.html"},"productButton3":{"productButtonText":"查看更多技术解决方案","productButtonLink":"https://www.aliyun.com/solution/tech-solution/"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"解决方案推荐","productPromotionInfoFirstText":"MSE实现全链路灰度","productPromotionInfoFirstLink":"https://www.aliyun.com/solution/tech-solution/iflgbomse","productPromotionInfoSecondText":"云上经典架构","productPromotionInfoSecondLink":"https://www.aliyun.com/solution/tech-solution/habwoc"}]},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}
相关电子书
更多
《Nginx 代理系统常用手册》
CentOS Nginx PHP JAVA 多语言镜像使用手
CentOS Nginx PHP JAVA多语言镜像使用手册
立即下载 立即下载 立即下载