NGinx Domain name redirects
Posted
by
Srikar
on Server Fault
See other posts from Server Fault
or by Srikar
Published on 2012-11-29T15:23:54Z
Indexed on
2012/11/29
17:06 UTC
Read the original article
Hit count: 279
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
?
© Server Fault or respective owner