400 Bad Request The plain HTTP request was sent to HTTPS port nginx/1.16.1
时间: 2023-10-18 22:30:03 浏览: 162
这个错误是Nginx服务器返回的错误,意思是收到的请求是通过HTTP发送到了HTTPS端口。这种错误通常发生在Nginx同时处理HTTP请求和HTTPS请求的情况下。当用户通过HTTP访问网站时(例如使用http://blog.yoodb.com),请求会在浏览器中显示错误信息"nginx 400 bad request The plain HTTP request was sent to HTTPS port"。这个错误的原因是每次用户试图通过HTTP访问网站时,请求会被重定向到HTTPS。然而,原始请求通过80端口发送的是普通的HTTP请求,导致产生错误。要解决这个问题,需要检查Nginx的配置文件,确保正确配置了HTTP和HTTPS的监听端口,并将请求正确地重定向到相应的端口。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Nginx报错“The plain HTTP request was sent to HTTPS port”问题解决办法](https://blog.csdn.net/afreon/article/details/97142847)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文