Skip to main content
  1. Tags/

Nginx

2024


Setup Nginx to host a Static Site

··240 words·2 mins
A reasonably secure Nginx config for static site hosting with TLS using Let’s Encrypt certificate.

0001


Default Server Settings for Nginx

··32 words·1 min
Config #server { listen [::]:443 ssl http2; listen 443 ssl http2; server_name _; ssl_reject_handshake on; } server { listen 80; listen [::]:80; server_name _; return 444; } Reload nginx: