Answer the question
In order to leave comments, you need to log in
Why doesn't interception of non-existent domains work in NGINX?
The goal is (yes, yes, again): to intercept and reject http/https requests that are not handled directly.
I add a file with a virtual host config to the common heap. But he does not want to work either at all, or half.
If you write
server {
listen 80 default_server;
server_name _;
return 444;
}
server {
listen 443 default_server;
server_name _;
return 444;
}
server_name
does nothing. Answer the question
In order to leave comments, you need to log in
Already answered this question today, and colleagues said that everything has been working for a long time and it seems to you
Keys first then chairs
listen 443 ssl;
server_name default_server ;
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
root /var/www/html;
return 444;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question