semua halaman diarahkan ke index.html
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /index.html;
error_page 500 502 503 504 /index.html;
location = /index.html {
root /var/www/html;
internal;
}
}
server {
root /var/www/html;
index index.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /index.html;
error_page 500 502 503 504 /index.html;
location = /index.html {
root /var/www/html;
internal;
}
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/blocked.domain.net.id/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/blocked.domain.net.id/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}