MSNCodeSNIPPETS← msncode.dev
snippets/nginx

Redirect HTTP to HTTPS

Force all traffic to use HTTPS

nginxnginxredirecthttps
NGINX
return 301 https://$host$request_uri;

More nginx snippets

Custom 404 Page

Serve a custom error page for 404s

Enable Gzip Compression

Compress responses to reduce bandwidth

Reverse Proxy to Backend

Forward requests to a backend server

Serve Static Files

Serve static files from a directory