Redirect Yunohost admin to subdomain

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: SSH

Describe your issue

Hi, I use Yunohost for a personal server and it is really great.

I installed many applications and use my domain “domain.fr” for the nexcloud app. I would like to access the yunohost admin using a subdomain.
How do I access it now : “domain.fr/yunohost/admin
How I would like to access it : “my.domain.fr

I don’t really know what to change in the admin, files or my DNS manager (Cloudflare) to make this works.

Does anyone now how to do it ?

Thanks a lot.
Aymeric

Share relevant logs or error messages

There is no logs relevants for this topic I think.

1 Like

Hi @aymericloud

I’d suggest to have a look at /documentation/guided tour for the admin/ your case is covered it seems:

You may want to add a new record for the subdomain at your registrar (Cloudflare?) in the DNS zone, such as:

* 3600 IN A 111.222.33.44 as recommended by Yunohost in the DNS section
or
my 10800 IN CNAME domain.fr.

Back to Yunohost admin, create a my.domain.fr subdomain in the ‘domains’ section of the webadmin, or with the yunohost domain command in CLI.

Finally, declare my.domain.fr as the “main domain” in the admin interface. A star will be displayed next to the domain name.

[Edit]
Do not forget to generate a Let’s Encrypt certificate for the new subdomain.

1 Like

if you use cloudflare dns just add CNAME (*) domain.tld work well with proxy

1 Like