mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-06 05:00:18 +03:00
Add 'catch-all' server block to suppress Invalid HTTP_HOST exception
This commit is contained in:
parent
7c7176d4f9
commit
ef7d3e10f5
|
@ -92,5 +92,14 @@ http {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# catch-all block to prevent Invalid HTTP_HOST header exception
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen 443 ssl default_server;
|
||||
ssl_certificate /etc/letsencrypt/live/___my.example.com___/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/___my.example.com___/privkey.pem;
|
||||
server_name _;
|
||||
return 444;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user