I have an instance of nginx running which serves several websites. The first is a status message on the server\'s IP address. The second is an admin console on admin.d
admin.d
If you also want to catch requests with empty Host header (which is allowed in HTTP/1.0) you can use both regex and empty server_name:
Host
server_name
server { listen 80; server_name ~. ""; }