Nginx catch-all config for http:// and https://
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_...
shrwn.com.np1 min read