[xwiki-users] My Howto - Debian 4 (etch) - Tomcat - MySQL
Sergiu Dumitriu
sergiu at xwiki.com
Thu Mar 13 21:52:18 CET 2008
justanotheradress at gmail.com wrote:
> To options:
>
> 1. Use:
>
> ProxyPass / http://wahlfreiheit.ch:8082/
> ProxyPassReverse / http://wahlfreiheit.ch:8082/
>
> and move XWiki from tomcat/webapps/xwiki to tomcat/webapps/ROOT
> This means that you won't have the Tomcat manager app, but you will also
> remove /xwiki/ from the path.
>
>
> 2. Add a redirect from http://wahlfreiheit.ch/ to
> http://wahlfreiheit.ch/xwiki/
>
> --
> Sergiu Dumitriu <http://purl.org/net/sergiu/>
>
>
> Thanks for trying to help me, but those to proposals are not solving the
> problem IMHO.
>
> 1. I don't want to move XWIKI from tomcat/webapps/xwiki to tomcat/
> because then I couldn't use anything else with Tomcat
It does not mean that you will not be able to put anything else. You can
have:
tomcat/webapps/ROOT/ -> XWiki
tomcat/webapps/myapp/ -> another application
tomcat/webapps/intra/ -> another XWiki instance used internally
tomcat/webapps/manager/ -> Tomcat manager application
What you lose is the Tomcat Welcome page, which I never found useful.
You will be able to use the manager app, since it is in another directory.
> 2. A redirect does somehow not work
What did you try? There is a mod_redirect component, AFAIK.
> Even if I put the working link
> (http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome/) into the
> "ProxyPass" argument it does not work. The ProxyPass is actually working
> but somehow not. Do I may have to configure something in Tomcat, too?
> But then again, why is
> http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome/ working when
> addressed directly but not with ProxyPass...?
Because the way it works is like this:
- A = the url pattern on the left, like http://wahlfreiheit.ch
- B = the url pattern on the right, like http://wahlfreiheit.ch:8082/xwiki
- see some URL, U
- if U starts with A, then compose U' as B + (U - A), so for
http://wahlfreiheit.ch/xwiki/bin/view/Main/WebHome/ this becomes
http://wahlfreiheit.ch:8082/xwiki/xwiki/bin/view/Main/WebHome/
If you map /xwiki to http://wahlfreiheit.ch:8082/xwiki/ then it works
fine once the URL path starts with /xwiki/, but then
http://wahlfreiheit.ch is not passed to tomcat. This is why I said that
you must put a redirect in there.
> All I want is if I enter http://wahlreiheit.ch in my browser it should
> go to http://wahlreiheit:8082/xwiki/ and show the xwiki installation...I
> don't get it.. :-(
>
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
More information about the users
mailing list