[SOLVED] Yunohost redirects App to Admin / Yunohost redirige App vers Admin

:uk: English: :uk: (Version française ci-dessous)

Hi there, the problem I’ve been having is that my app at mydomain.tld is redirecting to my admin url at yuno.mydomain.tld.

I searched the forums, but the only similar posts I found were about subdomains that hadn’t been set up redirecting to admin. My domain is set up though and still doing this.

My YunoHost server

Hardware: VM with 4gig of RAM and 220gig of storage.
YunoHost version: 4.2.8.1 (upgraded from 4.1.8)
I have access to my server : Through SSH, direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I am trying to get the root of my domain to open my app instead of redirecting to Yunohost admin which is at a subdomain.

I have tried recreating my setup from scratch a couple of times, while still getting the same issue where my domain redirects to my admin subdomain. Each time I did the following in this exact order:

  1. Installed the 4.1.8 64 bit VM from Yunohost.org with yuno.mydomain.tld as my main domain
  2. Did a system upgrade from 4.1.8 to 4.2.8.1
  3. Checked diagnosis that ports 80 and 443 are open (I left the rest closed as I do not intend to use email / XMPP)
  4. Created the domain mydomain.tld
  5. Added a Lets Encrypt cert to mydomain.tld
  6. Installed Nextcloud to mydomain.tld
  7. Restarted my yunohost server and browser
  8. Enter my domain (with and without https) only to have it redirect to my admin subdomain at yuno.mydomain.tld.

The only warning message I see is when I install Nextcloud. It says:

Info: Installing nextcloud...
[...]
Warning: E: Release file for http://ftp.debian.org/debian/dists/buster-updates/InRelease is not valid yet (invalid for anothe
r 12h 36min 39s). Updates for this repository will not be applied.
Warning: E: Release file for http://forge.yunohost.org/debian/dists/buster/InRelease is not valid yet (invalid for another 1h
43min 14s). Updates for this repository will not be applied.
Warning: Load smb config files from /etc/samba/smb.conf
Warning: Loaded services file OK.
Warning: Server role: ROLE_STANDALONE
Info: [#+..................] > Creating a MySQL database...
Info: [##..................] > Setting up source files...
Info: [##..................] > Configuring system user...
Info: [##++++++++..........] > Configuring PHP-FPM...
Warning: E: Release file for http://forge.yunohost.org/debian/dists/buster/InRelease is not valid yet (invalid for another 1h
41min 40s). Updates for this repository will not be applied.
Warning: E: Release file for http://ftp.debian.org/debian/dists/buster-updates/InRelease is not valid yet (invalid for another 12h 35min 5s). Updates for this repository will not be applied.
Info: [##########+.........] > Configuring NGINX web server...
[...]
Success! Installation completed

.

.

:fr: French: :fr: (English version above)

Bonjour, le problème que j’ai rencontré est que mon application à mydomain.tld est redirigée vers mon url d’administration à yuno.mydomain.tld.

J’ai cherché dans les forums, mais les seuls messages similaires que j’ai trouvés concernaient des sous-domaines qui n’avaient pas été configurés et qui redirigeaient vers l’adresse d’administration. Mon domaine est pourtant configuré et fait toujours cela.
Mon serveur YunoHost

Matériel : VM avec 4gig de RAM et 220gig de stockage.
Version de YunoHost : 4.2.8.1 (mise à jour de 4.1.8)
J’ai accès à mon serveur : Par SSH, accès direct par clavier / écran.
Etes-vous dans un contexte particulier ou avez-vous effectué des réglages particuliers sur votre instance de YunoHost ? : non
Description de mon problème

J’essaie de faire en sorte que la racine de mon domaine ouvre mon application au lieu de rediriger vers l’administration de Yunohost qui se trouve dans un sous-domaine.

J’ai essayé de recréer ma configuration à partir de zéro plusieurs fois, tout en obtenant toujours le même problème où mon domaine redirige vers mon sous-domaine d’administration. A chaque fois, j’ai fait ce qui suit dans cet ordre exact :

J'ai installé la VM 4.1.8 64 bit de Yunohost.org avec yuno.mydomain.tld comme domaine principal.
Mise à jour du système de 4.1.8 à 4.2.8.1.
Diagnostic vérifié que les ports 80 et 443 sont ouverts (j'ai laissé le reste fermé car je n'ai pas l'intention d'utiliser la messagerie / XMPP)
Création du domaine mydomain.tld
Ajout d'un certificat Lets Encrypt à mydomain.tld
Installation de Nextcloud sur mondomaine.tld
Redémarré mon serveur yunohost et mon navigateur
J'ai entré mon domaine (avec et sans https) pour qu'il soit redirigé vers mon sous-domaine d'administration à yuno.mydomain.tld.

Le seul message d’avertissement que je vois est lorsque j’installe Nextcloud. Il dit :

Info : Installation de Nextcloud...
[...]
Avertissement : E : Le fichier de version pour http://ftp.debian.org/debian/dists/buster-updates/InRelease n'est pas encore valide (invalide pour un autre utilisateur).
r 12h 36min 39s). Les mises à jour pour ce dépôt ne seront pas appliquées.
Avertissement : E : Le fichier de version pour http://forge.yunohost.org/debian/dists/buster/InRelease n'est pas encore valide (invalide pour une autre 1h
43min 14s). Les mises à jour pour ce dépôt ne seront pas appliquées.
Avertissement : Chargement des fichiers de configuration smb depuis /etc/samba/smb.conf
Avertissement : Chargement du fichier de services OK.
Avertissement : Rôle du serveur : RÔLE_STANDALONE
Info : [#+..................] > Création d'une base de données MySQL...
Info : [##..................] > Configuration des fichiers sources...
Info : [##..................] > Configuration de l'utilisateur système...
Info : [##++++++++..........] > Configuration de PHP-FPM...
Avertissement : E : Le fichier Release pour http://forge.yunohost.org/debian/dists/buster/InRelease n'est pas encore valide (invalide pour encore 1h
41min 40s). Les mises à jour de ce référentiel ne seront pas appliquées.
Avertissement : E : Le fichier de version pour http://ftp.debian.org/debian/dists/buster-updates/InRelease n'est pas encore valide (invalide pour encore 12h 35min 5s). Les mises à jour pour ce dépôt ne seront pas appliquées.
Info : [##########+.........] > Configuration du serveur web NGINX...
[...]
Succès ! Installation terminée

So, I realized that the issue was that when going to Nextcloud, Yunohost wants to redirect to the Yunohost login, but that was using a self-signed cert which Firefox doesn’t seem to want to recognize or allow an exception for.

I installed a Lets Encrypt certificate by the command line and now both Nextcloud and Yunohost admin work fine. Then I just had to add visitors access to nextcloud so the apps would work and voila, all good.

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