SOGo enters in redirect loop

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/;
}