可能是标红目录层级不一致

 

location / {
root /var/www/html/public;
index index.php;
}

 

 

location ~ \.php$ {
root /var/www/html/public;
fastcgi_pass fpm:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

相关文章:

  • 2021-10-28
  • 2021-08-05
  • 2021-09-29
  • 2021-10-23
  • 2022-12-23
猜你喜欢
  • 2022-03-08
  • 2021-06-19
  • 2021-12-31
  • 2021-06-02
  • 2021-08-20
  • 2022-01-26
  • 2021-06-15
相关资源
相似解决方案