500 Internal Server Error | nginx

Finally, I executed a:

and restarted nginx.

Now, I receive a error message related to redirection error.

La page n’est pas redirigée correctement.
Une erreur est survenue pendant une connexion à maison.domain.tld.
La cause de ce problème peut être la désactivation ou le refus des cookies.

What’s next to completly fix it ?
I keep investigating.

Uuuuh I would look at the ‘Network’ tab in Firefox debugger …

Maybe there are some old redirections in the cache and cleaning the cache with Ctrl+Shift+R could do the trick, not sure …

@Aleks, thank you for your reply…

I deleted everything from the Firefox cache for the related domain names.
I also rebooted my Yunohost server.

Indeed, there are many redirections…

file:///home/iwan/Images/Redirections.png

My Yunohost runs as a VM on a Proxmox server.

It is behind a HA-Proxy…

I absolutely do not know how to fix it…

Meh, not sure what’s happening exactly but pretty sure it’s related to the reverse proxy …

I’m guessing the reverse proxy is forwarding the request in http, but SSOwat wants to enforce https … which is then answered by the reverse proxy, but forwarded in http, so SSOwat again wants to enforce http …

Could be fixed by declaring the scheme in ssowat conf to be http instead of https … Not clear to me why this was working before but not now …

Recently, I changed a lot of things in my home configuration.
In fact, my box is currently configured in bridge mode, but I do not think it is related to the current issue.
However, I also modified my letsencrypt certificates.
Before, I had several certificates configured as follows:

  1. domain1.tld
  2. *.sub1.domain1.tld
  3. *.sub2.domain1.tld
  4. domain2.tld
  5. *.sub1.domain2.tld
  6. *.sub2.domain2.tld

I moved to something simpler:

  1. domain1.tld
  2. *.domain1.tld
  3. domain2.tld
  4. *.domain2.tld

I’m wondering if the system is not lacking the previous subdomain.
I’ve modified my letsencrypt certificates, and I’m going to check if it will fix this redirection issue.
I’ll let you know.
Thank you again…

I changed the settings of my LetsEncrypt certificates, and regenerated.
But it not solve the problem.

However, Ha-Proxy was talking with Yunohost, using HTTP protocol.
I reconfigured Ha-Proxy, so it uses HTTPS to talk with Yunohost, and Bingo !
It works… :+1:
It was just to keep you informed…

Thank you again @Aleks for your help. :pray:

Cheers !

1 Like

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