server { listen 80; listen [::]:80; server_name faay.ch www.faay.ch; root /var/www/faay.ch/public_html; index index.php index.html index.htm; access_log /var/log/nginx/faay.access.log; error_log /var/log/nginx/faay.error.log; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.3-fpm.sock; } location ~ /\.ht { deny all; } }