Hello,
I have xwiki-9.11.4 Standalone WAR distribution installation on tomcat(deployed as ROOT) and I have configured apache with AJP proxy to call xwiki.
Administer Wiki page is not loading when hitting url from apache. As apache is adding trailing slash(/) at the end of url.
Is there a way in xwiki where I can set this redirection rule as
mydomain/bin/admin/XWiki/XWikiPreferences/ ==> x.x.x.x:8080/bin/admin/XWiki/XWikiPreferences
Note: I cannot change default apache setting related to directory slash.
Hi,
maybe you can post your rewrite/proxy rules to help you better.
At least you should ensure that slashes are balanced, i.e. something/ proxies to otherthing/ or something proxies to otherthing not something to otherthing/.
Which directive does the actual appending of the slash? Even if you cannot touch that one it might be interesting to know what it looks like. (Or maybe it is already in the code snippet you posted and I just fail to see it?)
We have this kind of configuration because there are two tomcat instances deployed as root are connected to same vhost. So, first is tomcat instance(our web application) mounted on /. We needed website of wiki like “DOMAIN FOR SALE”.
To achieve this we have connected XWiki tomcat instance using ajp proxy.
By using this configuration everything is working fine, only admin page is not loading.
url is : DOMAIN FOR SALE
Its adding slash at the end
At tomcat URL is: instanceIP:8080/bin/admin/XWiki/XWikiPreferences
without trailing slash, so loading fine.
Is there a way in xwiki where I can define that it should load same page with or without slash. Or on apache I can define particular rule for this particular url?