How to have two domains point to same IP address?


My YunoHost server

Hardware: VPS bought online

YunoHost version: YunoHost (stable).
I have access to my server : Through SSH | through the webadmin

Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I just installed a new Yunohost Instance. I have two similar domains.

domain 1:

What DNS records do I need to have them both point to my Yunohost server? I want it so if a person searches for either variation of the domain, they still arrive at the same place, in this case a Wordpress site.

How do i configure my domains to use the same IP address, and so both have ssl certificates?

Any help is appreciated. This DNS stuff makes my head hurt.

you can simply add a redirection for one of your domains in your domain register, create CNAME entry in your register (IIRC) just keeping your main domain linked to your wordpress site in your ynh instance.


use DNS as usual for both domains and configure nginx to serve the same content, but could potentially be problematic.

I recommend first aproach for convenience.

1 Like

You can also check the Redirect app in YunoHost.
It can be used in several ways :

  • invisible redirection (best way BUT some webapps sometime do not like this)
  • iframe (the destination website is displayed within an iframe, this can also break things, and I dislike iframes)
  • http redirection (you type and your browser receive "can youqgo to instead, please ?, and then, your browser goes there). What can be a problem is that the user will see, but this is my preffered way.
1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.