I am installing XWiki as Docker image with Treafik revers proxy on front, with path prefix like DOMAIN FOR SALE as base path of the wiki.
I used different solutions without success :
default docker image that have ROOT web app, and Treafik PathPrefixStrip=/xwiki/
modified docker image with /xwiki web app, and Treafik PathPrefix=/xwiki/
The docker image deploys XWiki as ROOT in the servlet container (tomcat). So the URL for XWiki is http://mydomain.org/ and not http://mydomain.org/.
So what you would want is the ability to configure the xwiki deploy path. This is Loading....
Originally I deployed XWiki as ROOT to make the URLs shorter and nicer but maybe it wasn’t a great idea after all (Especially since we could offer a Short URL solution with a configured url rewriter filter in web.xml).
So I guess your need for http://mydomain.org/ is because you want server other services using the generic http://mydomain.org/<servicename> URL, right?
I have solved my problem by building my own Docker image. I changed initial Dockerfile and some others startup files for deploy XWiki as webapps/xwiki. But when changing URL of XWiki, it is important to reinitialize XWiki storage volume and data base, and execute initial configuration wizard.
Remark : the initial configuration wizard is executed if file “.first_start_completed” do not exist inside web app dir. This represent a risk if Docker container is re-created (update, restart).
Hi, I’m also using docker with apache as a reverse proxy.
I didn’t wan’t to open a new topic so I’m using this one as my problem is related to the topics subject.
Problem without Port 8080:
When I go to my wiki with wiki.domainname.com and try to create a page with a template I get the message (Couldn’t save the document. Server not responding):
Too many people are reporting reverse proxy setup issues for the docker images caused apparently by the fact that the servlet context path is set to ROOT. Originally I thought it was a good idea since users were very often asking for short urls but apparently it wasn’t such a great idea.
At this stage I see 2 options:
Change the behavior and document it
Keep the behavior of deploying as ROOT but add a docker run config parameter to deploy under the xwiki context.
I think you are right.
Yesterday I tried like 3 Hours on different Proxy Configurations with no success.
Right now I think I’ll do the following:
Try Number 2 (on your post). But for that I need to google a little bit because I’m not exactly sure how to add these config parameter.
I think the best thing to do, is just to run it under the Tomcat Ports. No need for “portless” URL.
Therefore I’ll try to do what @mq2195 says in Using Tomcat SSL.
But I have to look how I can implement it in my docker-compose instead of using the docker-run command.
For me and my company is it just important to use Secure SSL, so if that means the users have to add :8443 to their Browser URL, I’m fine with that
PS:
When I did this under http, not https, everything worked fine.
Just with https I got the error, when I do “save and show”.
BUT, if I do “Preview” → “Save and Show” I got no error at all and everything seems to work with SSL and reverse proxy.
My development tools are showing me 302 when just “Save and Show” like @rissany posted on Failed to save page :