Friday, 15 March 2013

nginx - how to disable direct access to a web site by ip address -


I have a website on VPS.

The problem I have is that when I link the server to the IP, it links to this website.
Even mails Domains When entering Com, it does the same thing.

How can I disable it, so a visitor will get a message or

I tried to disable the IP and match a record on cloud flare but this does not work Does

My setup is:

  No control panel on Linux Debian NGX Not only command line with MandFlareye DNS setup BIND  

You can add just one server command before others.

  server {80; server name _; Return 404; }  

No comments:

Post a Comment