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

Menu