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