server{listen80;listen[::]:80;server_name_;root/usr/share/nginx/html/;# change to /var/www/htmlindexindex.phpindex.htmlindex.htmindex.nginx-debian.html;location/{try_files$uri$uri//index.php;}location~\.php${fastcgi_passunix:/run/php/php7.4-fpm.sock;fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;includefastcgi_params;includesnippets/fastcgi-php.conf;}location~*\.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ico|xml)$ {access_logoff;log_not_foundoff;expires360d;}# disable access to hidden fileslocation~/\.ht{access_logoff;log_not_foundoff;denyall;}}