server {
listen 80;
listen [::]:80;
root /var/www/youthclimateadaptation.com;
index index.php index.html index.htm index.nginx-debian.html;
server_name youthclimateadaptation.com;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
}
location ~ /\.ht {
deny all;
}
location ~ /\.git {
deny all;
}
}