Last active
July 20, 2017 07:45
-
-
Save simonlehmann/c4b9c7708e00faa2fe4e398f80d71386 to your computer and use it in GitHub Desktop.
Global catch-all server block for Nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
[...] | |
## | |
# Virtual Host Configs | |
## | |
# Default catch-all server block | |
server { | |
listen *:80 default_server; | |
listen *:443 default_server; | |
server_name _; | |
ssl_certificate /etc/nginx/ssl/example.com/ssl-bundle.crt; | |
ssl_certificate_key /etc/nginx/ssl/example.com/example.com.key; | |
return 404; | |
} | |
include /etc/nginx/conf.d/*.conf; | |
include /etc/nginx/sites-enabled/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment