微博中出现http/1.1 400 Bad Request怎么解决。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了微博中出现http/1.1 400 Bad Request怎么解决。相关的知识,希望对你有一定的参考价值。

参考技术A 可能的原因:请求频繁;浏览器版本;开发者请求的参数或方法错误;不支持的请求控件;等等

nginx:400 Bad RequestThe plain HTTP request

nginx: 400 Bad Request | The plain HTTP request was sent to HTTPS port

nginx 版本nginx/1.12.2
在nginx环境下使用ssl链接出现问题400错误
nginx配置文件如下:
技术分享图片

访问https时候正常,不过直接访问的时候会出现以下错误:
400 Bad Request The plain HTTP request was sent to HTTPS port错误

技术分享图片

技术分享图片

参考官方文档解决方法如下:
删掉ssl on; 并在 listen 443; 443后加上ssl即可

技术分享图片

http直接访问演示正常:
技术分享图片

到此解决

以上是关于微博中出现http/1.1 400 Bad Request怎么解决。的主要内容,如果未能解决你的问题,请参考以下文章

Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request&q

新浪微博中遇到的网络问题

Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"解决方法

Jetty 在格式错误的 HTTP POST 标头上返回“HTTP/1.1 400 Bad Request”。这是预期的吗?

转载Redis在新浪微博中的应用

nginx:400 Bad RequestThe plain HTTP request