HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: /var/lib/letsencrypt/backups/1758727648.5690002/bellecouture.conf_14
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;

            # FastCGI Cache Settings
              fastcgi_cache WORDPRESS;
              fastcgi_cache_valid 200 301 302 1h;
              fastcgi_cache_use_stale error timeout invalid_header http_500;
              fastcgi_cache_min_uses 1;
              fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
              add_header X-FastCGI-Cache $upstream_cache_status;     
	 
	 }


    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/bellecouture.id/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/bellecouture.id/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

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


}
server {
    if ($host = bellecouture.id) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


         server_name  bellecouture.id;

    listen 80;
    return 404; # managed by Certbot


}