server { listen 80; listen [::]:80; server_name monsite.net; root /var/www/monsite; index index.php index.html index.htm index.nginx-debian.html; access_log /home/pi/logs/monsite_access.log perso; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.4-fpm.sock; } }