он не видит странцу с php почему то
/var/log/nginx/error.log
2022/06/10 06:52:52 [error] 608868#608868: *2 open() "/usr/share/nginx/html/info.php" failed (2: No such file or directory), client: 127.0.0.1, server: _, request: "GET /info.php HTTP/1.1", host: "127.0.0.>
2022/06/10 06:52:52 [error] 608868#608868: *2 open() "/usr/share/nginx/html/404.html" failed (2: No such file or directory), client: 127.0.0.1, server: _, request: "GET /info.php HTTP/1.1", host: "127.0.0.>
/etc/nginx/sites-available/test
server {
listen 80;
server_name test www.test 127.0.0.1 ;
root /var/www/test;
index index.html index.htm index.php info.php;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
}
location ~ /\.ht {
deny all;
}