How to migrate domains from the old management style to the new (YNH 12) subdomain style?

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.12
How are you able to access your server: The webadmin
SSH
Direct access via physical keyboard/screen

Describe your issue

I have a few domains on my server, but most of them are subdomains of the same main domain.

e.g.:

  • domain1 – blog
  • domain2 – nothing here
  • sub1.domain2 – YNH landing page
  • sub2.domain2 – app1
  • sub3.domain2 – app2
  • sub4.domain2 – app3
  • subN. domain2 – appN
  • domain3 – some redirect

I just noticed that since Yunohost 12 when adding a new domain there is an option to instead add it as a sub-domain to the main one instead. I imagine this would simplify my life quite a bit, so I am wondering what is a good migration path from the old domain handling system to the new one, without losing or breaking anything on my existing blog, apps etc.

Share relevant logs or error messages

n/a

hi, doin backup to switch to new restore config

This feature is for user experience, it :

  • prevents doing mistake on typing domain.tld
  • make users can understand that they can define subdomain for their ynh.fr domain…

Technically, the migration to yunohost 12 should have organize every domains / subdomains like it should. You can edit some options if you want about the new portal.

1 Like

I understand that and find it super cool!

This did not happen to me. Perhaps because I have not added the second-level domain.

What’s tedious currently for me is the DNS and certificate management, because for every app I need to push the DNS and re-create the certificate separately. I imagine that with the new approach, there could be just one certificate for all sub-domains together and less work with the DNS too.

[5 minutes later]

Aaah, OK, I figured it out. All I needed was to add my main 2nd level domain and YunoHost organised its 3rd level subdomains under it.

Sweet! :smiley:

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