server {
        listen 80;
        root /var/www/html/site2;
        index  index.php index.html index.htm;
        server_name site2.local;

        error_log /var/log/nginx/site2.local_error.log;
        access_log /var/log/nginx/site2.local_access.log;
        
        client_max_body_size 100M;
        location / {
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php7.4-fpm.sock;
                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
}