I am currently trying to make an xwiki docker container available under mydomain.com/foo.
I configured the nginx to redirecr the path to the docker container’s port. When I now open mydomain.com/foo, the wiki loads (25% …), and then redirects to mydomain.com/bin/…, thinking it is a root application. As an approach to fix this, I tried setting xwiki.webapppath=foo in xwiki.cfg, but then the nginx produces a 502 / infinite redirect as described here.
What can I do to make this work?