How to use wildcard domain in Nginx

In-order to cath all domains in Nginx, we need to modify the configuration in the following way.

listen  80  default_server;

This will accept any domains that is not defined anywhere in the virtualhost configuration.

That's all…

Leave a Reply

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