1. connect() failed (111: Connection refused) while connecting to upstream, client: X.X.X.X, server:
1. connect() failed (111: Connection refused) while connecting to upstream, client: X.X.X.X, server: tpke.X.com, request: “GET /index/Kr/index HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9001”, host: “tpke.X.com”
解决:检查Nginx配置文件 nginx.conf
配置的 fastcgi_pass
端口,我把9000写成9001了
2.隐藏URL中的index.php
解决:在location中添加如下配置:
if ( !-e $request_filename) { rewrite ^/(.*)$ /index.PHP/$1 last; break;}
来源地址:https://blog.csdn.net/qq_33225432/article/details/127107568
--结束END--
本文标题: nginx 问题汇总
本文链接: https://www.lsjlt.com/news/401295.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0