SOGo enters in redirect loop

My YunoHost server

Hardware: VPS in netcup.eu, ARM architecture.
YunoHost version: 11.2.9.1
I have access to my server : Through SSH and through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : not that I know, it is a vanilla installation.

Description of my issue

I am trying to install the SOGo application in a new installation of yunohost.

When accessing it, the browser complains about a redirections problem. Looking to the logs, it is looping over https://sogo.mydomain.com/jaime/jaime (being jaime my user name).

Given that my domain is mydomain.com (it is not :slight_smile:), I have installed Yunohost under yuno.mydomain.com. I have tried to install SOGo both under sogo.mydomain.com and under sogo.yuno.mydomain.com. In both cases I have the same problem.

In the same yunohost instance I have also installed roundcube and nextcloud, they work correctly.

In the access log for this domain I see this:

XXX:XXX:XXX:XXX - jaime [07/Feb/2024:17:15:59 +0100] "GET / HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
XXX:XXX:XXX:XXX - jaime [07/Feb/2024:17:15:59 +0100] "GET /jaime HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
XXX:XXX:XXX:XXX - jaime [07/Feb/2024:17:15:59 +0100] "GET /jaime/jaime HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
XXX:XXX:XXX:XXX - jaime [07/Feb/2024:17:15:59 +0100] "GET /jaime/jaime HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
XXX:XXX:XXX:XXX - jaime [07/Feb/2024:17:15:59 +0100] "GET /jaime/jaime HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
XXX:XXX:XXX:XXX - jaime [07/Feb/2024:17:15:59 +0100] "GET /jaime/jaime HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
XXX:XXX:XXX:XXX - jaime [07/Feb/2024:17:15:59 +0100] "GET /jaime/jaime HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
XXX:XXX:XXX:XXX - jaime [07/Feb/2024:17:15:59 +0100] "GET /jaime/jaime HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
...

Thanks for any help!

An update, if I access through https://sogo.mydomain.com/SOGo, SOGo seems to partially load, but Firefox blocks most of the files because of icorrect MIME types.

Me too,

Hello,
You can try this command :
mv /etc/sogo/sogo.conf /etc/sogo/sogo.conf.old

yunohost service restart sogo

After I am a problem with connection to database

@Cyrilost your proposal actually fixed the login page, but I could not login with my users. The LDAP part is neccesary.

I found the problem, for some reason the nginx configuration seems to be invalid.

I had this location in /etc/nginx/conf.d/sogo.mydomain.com.d/sogo.conf:

location /.woa/WebServerResources/ {
    alias /usr/lib/GNUstep/SOGo/WebServerResources/;
}

That seems incomplete. Adding the SOGO prefix fixed it:

location /SOGo.woa/WebServerResources/ {
    alias /usr/lib/GNUstep/SOGo/WebServerResources/;
}