如图
配置nginx.conf,如下图

location / {
index index.html index.htm index.php; try_files $uri $uri/ /index.php?$query_string;
}
仔细检查/etc/nginx/sites-enables/homestead.test中的php-ftp,是否正确

我之前是7.3,改成7.2后重启nginx和php-ftp,刷新网页就可以正常访问了。
sudo service nginx reload
sudo service php7.2-fpm reload

本文详细介绍了如何配置Nginx的location指令,并调整PHP版本来确保网站能够正常访问。通过修改配置文件并重启服务,解决了因PHP版本不匹配导致的问题。
1007

被折叠的 条评论
为什么被折叠?



