I have a website on a VPS.
The issue I am having is that when I enter the IP of the server, it links to the website.
Even when entering mail.domain.com, it does the
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name "";
return 444;
}
You need to specify default_server
parameter so that all non available server requests goes to this server block
which throws 444 error
.
444 : CONNECTION CLOSED WITHOUT RESPONSE
ref: https://httpstatuses.com/444