


Мой код файла конфигурации:
server {
listen 80 default_server;
Код: Выделить всё
root /var/www/html;
index index.html index.htm index.php index.nginx-debian.html;
server_name test;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
try_files $uri $uri/ =404;
include snippets/fastcgi-php.conf;
fastcgi_pass unix: /var/run/php/php8.0-fpm.sock
}
Подробнее здесь: https://stackoverflow.com/questions/670 ... inx-server
Мобильная версия