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: //etc/nginx/conf.d/adila.conf
server {
         server_name  adila.co.id;
         root         /var/www/adila;

         access_log /var/log/nginx/adila.log;
         error_log  /var/log/nginx/adila-error.log error;
         index index.html index.htm index.php;

    #Prevent caching for login and admin pages
    set $no_cache 0;
    if ($request_uri ~* "/wp-login.php|/wp-admin/") {
        set $no_cache 1;
    }

         location / {
                      try_files $uri $uri/ /index.php$is_args$args;
         }

         location ~ \.php$ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php-adila.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/adila.co.id/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/adila.co.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.adila.co.id) {
        return 301 https://chameleon.co.id$request_uri;
    } # managed by Certbot


         listen       80;
         server_name  www.adila.co.id;
    return 404; # managed by Certbot


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


         server_name  adila.co.id;

    listen 80;
    return 404; # managed by Certbot


}