Hi, Of course, the question happen because I have several webapps already installed in the *same* container, otherwise I would just have to install this xwiki in the ROOT directory. (In other words, I already red http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs) Cheers Le 29/04/2014 13:11, Martin Hamant a écrit :
Hi,
I'm trying to set up an apache virtualhost with transparent proxy to a wiki of an xwiki farm (which farm resides on a local tomcat container). The main requirement here is I want the xwiki webapp path NEVER to appear anywhere in the URL - this is the point why I am using name based virtualhost.
http://projtest.sub.domain.com should be the home page of the wiki that is available within the /xwikiproj context of the container, so when requesting http://projtest.sub.domain.com , I want the WebHome page displayed with the URLhttp://projtest.sub.domain.com/bin/view/Main/WebHome in the browser.
With the configuration below, I get redirected to http://projtest.sub.domain.com/xwikiproj/bin/view/Main/WebHome. However I see that xwiki homepage logo link (upper left corner) is formed correctly to http://projtest.sub.domain.com/bin/view/Main/WebHome and I can get back to Home by clicking that link.
I've set xwiki.cfg like follow: xwiki.virtual.usepath=0 xwiki.webapppath=/
<VirtualHost *> ServerName projtest.sub.domain.com
ProxyPreserveHost on ProxyPassReverseCookiePath /xwikiproj / ProxyPass / http://localhost:8080/xwikiproj/ retry=5 ProxyPassReverse / http://localhost:8080/xwikiproj/ </VirtualHost>
Going a little deeper, I see that http://projtest.sub.domain.com/ returns a 302 with location header set to 'h|ttp://projtest.projects.ow2.org/xwikiproj/bin/view/Main/'| so I guess xwiki somehow adding "xwikiproj" to the 'Location' header but I don't understand why and how I can handle it !
Any idea ? Thanks !
Martin _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users