How to block direct IP access to your Nginx web server
Nginx by default does not block unwanted access to your web server when it's done directly to your servers IP addresses. Here's how you can fix this behaviour to protect your servers resources.
By Erik. Erik Pöhler's Weblog.