You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Poglitsch Hans Peter <ha...@stmk.gv.at> on 2013/01/24 11:01:28 UTC

Access JSPWiki from multiple hosts

Hi All,

I would like to access one Tomcat-deployment of JSPWiki from different (Apache-)hosts, but it seems I need some help on that.
I'm using JSPWiki 2.8.4 right now.
My problem starts with the jspwiki.baseURL  setting in jspwiki.properties.

Say, my jspwiki.baseURL=http://host1.domain1/wiki/   which would be one of the Apache hostnames.
When I access the Wiki through the second host (e.g. http://host2.domain2/wiki/) I will on some actions (saving user preferences, uploading attachments) be redirected to host1.

Is there any way I can get the wiki to always generate relative URLs  or at least use the current hostname (the one it's getting accessed from) when generating absolute URLs?  jspwiki.referenceStyle=relative does not seem to work for all the generated URLs.

Thanks
Hans Peter