I've got an nginx installation that serves a couple of virtual hosts; these are working fine. However, I seem to recall that this server is responsible for hosting a couple of other websites. I can't recall which ones.
I don't want these requests to resolve to the default (arbitrary) vhost.
At the moment, for example, going to http://10.0.0.10/
(the internal address) resolves to the default vhost. This vhost is running drupal, and -- because drupal doesn't recognise the vhost -- it brings up the drupal installation instructions. I'm concerned that this is happening to other, external names that resolve to this server.
Is there a way to set up nginx so that it logs and drops requests that don't exactly match a configured vhost?
Alternatively, I guess, the question could be phrased: "How do I set up a default vhost that matches all unknown names? And how do I configure that vhost to log and drop accesses?"
Set up a default catch all server and log requests to a specific file and return some status or other. Your other known servers can be configured with known server_name values.