在 fastcgi_params 中添加
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
在 nginx.conf 中解开 .php$ 相关注释并添加
try_files $uri $uri/ /index.php$is_args$args;
index index.php index.html index.htm;
在 fastcgi_params 中添加
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
在 nginx.conf 中解开 .php$ 相关注释并添加
try_files $uri $uri/ /index.php$is_args$args;
index index.php index.html index.htm;