Yes, @pdwalker
I saw it, but it seems all example are / (root) to / (root) or /xwiki/ to /xwiki/
and even hidden /bin
I am confusing if I front would like to use hostname/bin/ directly then proxy_pass to hostname:8080/wiki and wondering is it will be work?
I referred by this to install:
I actually not familiar with Tomcat? is it same also like Apache? is there a default site config? and is /xwiki.cfg would be consider like a virtual host config?
Let’s break it down and try to understand what exactly it is you want to accomplish and what your real needs actually are?
First of all, why do you want to use a proxy? Why don’t you just serve the wiki from tomcat directly? (yes, you may have perfectly valid reasons for doing this - but I need to understand what they are)
Second - what are you doing to the urls? Do you want to use the default xwiki urls? If so, then configuring the proxy is relatively simple. Do you want a different url to appear? If so, then it gets a bit tricker as you have to rewrite the urls sent to and from the proxy. Not impossible, but it does take a bit more thought.
For example I have a wiki behind an apache proxy. I am using a proxy because the webserver is doing two things; (a) supporting multiple vhosts and (b) provides SSL termination. If I didn’t need easy vhost support, I’d just run without a proxy. Tomcat can also handle SSL, but it’s much easier to set up with apache - especially with multiple vhosts.
However, if you want your urls to look different, then you will need to change the ProxyPass and ProxyPAssReverse settings to handle the remapping for every request.
First one is we need to use reverse proxy to share same public IP to expose some internal web services, xwiki is our one of all and we want to deploy SSL thru the reverse to centralised management; So we don’t direct to use Tomcat serve user
Second, yes with handle url: domain/bin/Main -> 192.168.1.1:8080/xwiki/bin/Main (Only hide /xwiki/ path for frontend then pass original to handle as well)
Just like simple, I am stuck at handle resources handling only (basically work open web, but some features like edit button still present /xwiki/ path)
for you showed me config, I need to figure out ProxyPass and ProxyPassReverse
I’m new to use java web, not sure is it any reload compile/config action
suppose xwiki.webapppath= set as empty, the post URL also be root (/) not (/wiki)
but I see some still route /wiki like edit button some admin page
I only just want to figure out this
Defiantly thanks your help and tried
Updated (also for another similar user):
seemly resolved by changed the following, but not sure any leaving: xwiki.virtual.usepath=0
default is commented and suppose as 1
#-# How virtual wikis are mapped to different URLs.
#-# If set to 0, then virtual wikis have different domain names, in the format http://wikiname.myfarm.net/.
#-# If set to 1 (the default), then the domain is common for the entire farm, but the path contains the wiki
name,
#-# in the format http://myfarm.net/xwiki/wiki/wikiname/.
#-# Note that you can configure the "/wiki/" part with xwiki.virtual.usepath.servletpath property.
xwiki.virtual.usepath=0