I found https://jira.xwiki.org/browse/XDOCKER-74, which brings up the same problem, but I couldn’t figure out how to implement the suggestions.
I have an apache server which is proxy-ing /wiki address to an xwiki docker container.
The reverse proxy directive in apache is the same as the proxy. /wiki host:port/wiki
After messing with tomcat’s contexts without success, I decided just to brute force it.
I pulled the xwiki docker from github and changed all the webapps/ROOT to webapps/wiki in the Dockerfile.
I did the same for the docker-entrypoint.sh file.
I built the images and spun up the containers without error.
I confirmed that the tomcat/webapps folder of the container contains a “wiki” app folder and not “ROOT”.
I can hit the wiki by typing wiki/bin/distribution into the address bar. The apache proxy is working, and so is the deployed app.
However, any link I click on in an xwiki page is still using root base path “/”. It will try /bin/distribution or whatever and not hit the /wiki path. Also, none of the css is working for the same reason. It’s looking for it at the wrong url.
I’ve tried many different combinations of approaches fiddling with tomcat with no luck. I’d love a definitive tutorial for this.
What does the xwiki.webapppath setting do in the docker?-entrypoint.sh do? I set it to “wiki” and “”. It didn’t seem to affect my problem.