server { listen 80; listen [::]:80; root /var/www/html; index index.php index.nginx-debian.html; server_name demo-devops.konnect.dev; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.1-fpm.sock; } location ~ /\.ht { deny all; } access_log /var/log/nginx/default_nginx.log; error_log /var/log/nginx/default_nginx.log; }