Have two or more completely different domains point to the same instance?

If I have e.g. nameX.biz and nameY.xyz and want both of them to point to my server (without any <subdomain>.nameX.biz), what do I have to modify?

You can try jwt

Hi @pgenderson,

the solution should be very simple:

  1. Go to /etc/nginx/sites-enabled and copy the .conf file.
  2. Rename the file (maybe to domain.conf).
  3. In the server section change the server_name entry to your domain.
  4. repeat this step for every www.-subdomain like www.domain.com, too. Otherwise it’s only possible to access your site with https://domain.com but not with https://www.domain.com

Here is a link for more details:
https://stackoverflow.com/questions/11773544/nginx-different-domains-on-same-ip