Nginx catch-all config for http:// and https://
Nov 28, 2023 · 1 min read · Catch-all for Port 80 (http://) server { listen 80 default_server; server_name _; return 404; } Catch-all for Port 443 (https://) First generate a self signed cert: openssl req -nodes -x509 -newkey rsa:4096 -keyout self_key.pem -out self_...
Join discussion
