解决Nginx 404 not found问题

it2022-05-05  111

在Nginx安装目录下找到 “conf” 文件夹下的 “vhost.conf” 在 “vhost.conf” 中有以下代码:

location / { index index.html index.htm index.php; #autoindex on; }

把这段代码用以下代码代替即可:

location / { try_files $uri $uri/ /index.php?$query_string; }

最新回复(0)