lnmp は pathinfo を有効にし、index.php を非表示にします
次のセクションを編集します:
location ~ [^/]\.php(/|$){ # comment try_files $uri =404; to enable pathinfo try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; #include pathinfo.conf;}
location ~ [^/]\.php
#try_files $uri =404;
include pathinfo.conf;
location /{ if (!-e $request_filename) { rewrite "^/(.*)$" /index.php last; }}
service nginx restart