- 时间:2021-04-06 21:56 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:Nginx出现The plain HTTP request was sent to HTTPS port问题解决方法
今天在配置Nginx+SSL的时候出现如题的错误,后来与度娘一番云雨之后找到一个解决方法,挺有用,随手转之。
一般在vhost的配置中会有php解析的一段,如:
[url=http://stackoverflow.com/questions/4848438/fastcgi-application-behind-nginx-is-unable-to-detect-that-https-secure-connectio]stackoverflow[/url]/[url=http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_param]nginx#1[/url]/[url=http://nginx.org/en/docs/http/ngx_http_core_module.html#variables]nginx#2[/url]