server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html/lxd-dashboard; index index.html; server_name _; location / { try_files $uri $uri/ =404; } location ~ \.php$ { #include snippets/fastcgi-php.conf; #fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; fastcgi_pass unix:/run/php/php7.4-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; include snippets/fastcgi-php.conf; } }