But this does not work (ssl error)… Removing the proxy_set_header directives does not help.
If I forget the ssl part and simply listen on 80 and proxy_pass to jetty, it kinda works: I get to the login screen, but it won’t accept my user and password… (I’m stuck on the login screen)
So… if someone has hints on this, I’ll be thankful
Ok, I found the problem. Security in Axelor is done using Apache Shiro. Shiro will use cookies with a path, that might need to be rewritten when using a reverse proxy.
Yep. Not sure however that this has to do with Nginx vs Apache. I rather think that the fact the I change the url when reverse proxying was the problem.
The url (location) used on the nginx side is not the same as the url (web context) used on the servlet (jetty9) side. I think this is why I have to change the security cookie to make the url match.