Имею конфиг
server
{
listen 80;
listen [::]:80;
server_name _;
location / {
root /var/www/html;
#index index.php;
#try_files $uri $uri.php $uri/;
#try_files $uri $uri/ /index.php?$args;
#rewrite ^/([^.]+)$ /$1.php break;
#try_files $uri.php $uri.html $uri/index.php =404;
#try_files $uri $uri/ @rewrite;
}
location ~ [^/]\.php(/|$) {
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
#include snippets/fastcgi-php.conf;
#fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#include /etc/nginx/fastcgi_params;
include fastcgi.conf;
}
}
При переходе на сайт, мне показывает
File not found., почему?