Prevent the direct IP address access to Nginx webserver
First, make sure all the virtual host site conf file has no default_server. Then, make a new conf file under /etc/nginx/conf.d/. For me I use default.conf. Add the following into this file to block all the direct IP access for...