I was looking for option to load a particular site for a domain name pointed to a IP on NGINX. Following option did the trick.

Just add default_server to the configuration for the site need to be loaded

server{
 listen 80 default_server;
 server_name defaultdomain.com
}

Default site for name based virtual host on NGINX

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.