Domain switch, ynh main domain

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.40.1
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no

Describe your issue

1

switching to a new domain and changing app urls atm. all ynh hosted + mail (office and personal).
wondering if the root domain or the vps one should be ynh’s “main domain”?

domain.org → static website
vps.domain.org → ynh apps that can share a domain
app1.domain.org → apps that need its own name

2

im also scratching my head over this sogo mail bug where i up to now hacked a sogo config file because aperantly my /etc/hostname is not correct.
it is still set to my old domain vps.domain.old but should be looking like this 127.0.0.1 sub.domain.old sub
so from what i read switching ynh main domain will also update the hostname file. hopefully to the corrct entry. maybe some1 has some input for this, can remember bad things from messing with that file :slight_smile:

Share relevant logs or error messages

no error yet

Hi @tmp501

You have two request there, this would be better to open two topics since we will have to precise in each answer what 1 or 2 question our remark is related to.

For the point 1

wondering if the root domain or the vps one should be ynh’s “main domain”?

Here the we have to clarify what is a ‘main domain’.

in my configuration main domain has the the most generic one to be able to login with sso on all other domains. so i would state domain.org. but that’s up to you to decide what is your login landing page.

by sharing you mean using directories for applications like vps.domain.org/app1/ vps.domain.org/app2 ?

main domain documentation is spread on various installation, here this on debian :

according to above page :

“This will be the domain used by your server’s users to access the authentication portal. You can later add other domains, and change which one is the main domain if needed.”

authentication portal is 👥 Accounts and portal | Yunohost

For the second point, please open another topic and provides yunopaste logs.

thanks for the reply, appreciate it!

  • i moved ynh’s “main domain” to a my vps sub domain (work related people dont need to know whats behind the hp)
  • it did update /etc/hostname accordingly but not as suggested by the sogo maintainer.
  • found out i configured the the imaps wrong in sogo, pointing now to to the domain name not localhost ^^
  • think switching the main domain beforehand solved moving other apps to their new domain (kanboard, sogo)
  • all in all moving domains went pretty smoothly! thanks to all :slight_smile: