http { server { listen 80 default_server; server_name _; return 404; } server { listen 443 ssl; server_name _; ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; return 404; } }