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 return any error you find suitable. A list of errors can be found here List_of_HTTP_status_codes
server { listen x.x.x.x:80; server_name x.x.x.x; return 404; }