roles/nginx: Use default_server instead of default
Seems to be the new keyword for quite some time now, despite not causing an error: http://nginx.org/en/docs/http/server_names.html
This commit is contained in:
parent
03519831cb
commit
1ffc4eebc9
@ -3,14 +3,14 @@
|
|||||||
# clients asking for "example.com" should only get a response if we have
|
# clients asking for "example.com" should only get a response if we have
|
||||||
# a vhost serving that domain.
|
# a vhost serving that domain.
|
||||||
server {
|
server {
|
||||||
listen 80 default;
|
listen 80 default_server;
|
||||||
listen [::]:80 default;
|
listen [::]:80 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
return 444;
|
return 444;
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2 default;
|
listen 443 ssl http2 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
# "snakeoil" certificate (self signed!)
|
# "snakeoil" certificate (self signed!)
|
||||||
|
Loading…
Reference in New Issue
Block a user