There are several cases when, for various reasons, user agents make requests to our server for hosts that it is not configured to serve. This currently causes the Plesk page to be pretty disgusting by default, so I'm going to make it a little nicer and faster to load.
It made me think, and I can not find the answer to this online: What is the right way to deal with this situation? Should the server respond with 200, 404 or some other code? Is there an HTTP status code for this situation that I missed?
Finally, as a question of etiquette, what should be done if another server is now located on your server (unlike the domain that we owned but no longer use) (we acquired an additional IP address that was previously used , and lives in some invalid DNS records).
source
share