File: /var/lib/letsencrypt/backups/1740498279.0099418/bellecouture.conf_11
server {
server_name bellecouture.id;
root /var/www/bellecouture;
access_log /var/log/nginx/bc.log;
error_log /var/log/nginx/bc-error.log error;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-bellecouture.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
listen 80;
}
server {
if ($host = www.bellecouture.id) {
return 301 https://bellecouture.id$request_uri;
} # managed by Certbot
listen 80;
server_name www.bellecouture.id;
return 404; # managed by Certbot
}