| server {
    listen 80 default_server;
    root /var/www/html;
    index index.html index.htm index.php;
    server_name _;
    charset utf-8;
    location = /favicon.ico { log_not_found off; access_log off; }
    location = /robots.txt  { log_not_found off; access_log off; }
    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
    }
    error_page 404 /index.php;
}
 |