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
You can just add a server directive before others.
server { listen 80; server_name _; return 404; }