I would like to display the same content of: example.com
if someone visits example.net
I researched and it seems to be possible by simply setting up a CNAME record on example.net
that is pointing to example.com
.
I did exactly that, and this is how my setup looks like right now:
The problem I'm experiencing though is that when I visit example.net
I see the default Nginx page of the server that is hosting example.com
.
Why is that? Do I need to set things up on server side as well, to point to the same domain? It's quite confusing to me, what's the reason of CNAME then. I could use an A record for that also.
What am I missing here?