Lets say I have a website named xyz.co
, I also have other domain names with the same prefix like xyz.com, xyz.it, xyz.co.it
Right now nginx works fine with server_name xyz.co
in nginx.conf
in port 80
I would want all the other domains to redirect to xyz.co
also I would want www.*
versions of the above to redirect to xyz.co
. How can I get this? Is this nginx webserver level changes? or I need to make this changes in DNS
?