File: /var/lib/letsencrypt/backups/1727866637.532092/chameleon.conf_7
server {
server_name chameleon.co.id;
root /var/www/chameleon;
access_log /var/log/nginx/chameleon.log;
error_log /var/log/nginx/chameleon-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/php8.2-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
listen 80;
}
server {
if ($host = www.chameleon.co.id) {
return 301 https://chameleon.co.id$request_uri;
} # managed by Certbot
listen 80;
server_name www.chameleon.co.id;
return 404; # managed by Certbot
}