1. Virtual domain name points to / var/wwwroot/abc/public
2.Nginx.conf configuration ignores index:

if (!-e $request_filename){
        rewrite  ^(.*)$  /index.php?s=$1  last;
        break;
     }

if 3..htaccess is enabled, you can try this configuration

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

whether 4.runtime has sufficient permissions

if not, check the nginx log or php-fpm log (open php.ini search display_errors, to change Off to On and turn on php error prompt)

figure is my configuration diagram, for reference:

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb549e-4fa13.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb549e-4fa13.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?