Nginx...two domains, same sites? - eviltoast

Hi guys!

I’m considering moving away from duckdns, as it’s becoming increasingly unreliable. I’d like to check some other free dynamic DNS alternatives (I’m open to suggestions!).

My idea would be to have the server run under two different domains, but both directing to the same services. Is this possible? What shoudl I change in nginx in order to answer to two different domains/names?

Thanks!