Kristian,

I also don't have a direct answer to your question, but I'm using the
following configuration:

apache conf:
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
ProxyPass /JSPWiki ajp://localhost:8009/JSPWiki

Tomcat's server.xml:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

using the ajp proxy has the advantage that you still have the original
client IP address in Tomcat, if you use http proxy you loose that

regards,
Harry Metske

2008/5/26 KR <[EMAIL PROTECTED]>:

> Folks;
>
> so far I have enjoyed using JSPWiki internally for being an unobtrusive
> piece of software that, once installed, "just works". Right now,
> however, after having spent quite an unsuccessful and extremely
> unpleasant evening on this, I just wonder whether there's some sort of
> documentation on how / whether it is possible to get JSPWiki running in
> a tomcat container set up to behave well behind an apache2 reverse proxy
> in one of many virtual hosts. So far, I spent some hours both with our
> stock 2.4 and with an updated 2.6 installation, playing with various
> parameters in jspwiki.properties as well as the apache2 rewriting /
> proxy configuration but haven't had too much success so far.
>
> - Generally, I wanted to have all requests to /internal/wiki/
> proxy-passed to our internalhost:8080/JSPWiki/ . I have so far barely
> given up on that as, no matter what happens, no matter how I set up
> JSPWiki (mainly baseURL and referenceStyle), in quite a bunch of
> situations (redirect after successful login, redirect after saving
> files, ...) the request seems to be redirected to
> /JSPWiki/Wiki.jsp?page= ... . Strange, but so far I helped myself making
> /JSPWiki available to the outside world on this machine directly, hoping
> for the best.
>
> - However, still all is not well. Looking at the redirect behaviour
> (mainly following any login and/or save-file-from-editor attempt), it
> seems that JSPWiki does not just redirect to an URL having /JSPWiki/...
> hardcoded in it but also does redirect to an URL on a wholly different
> (non-HTTPS) VirtualHost on the same apache2, which doesn't know about
> JSPWiki and, subsequently, makes me end up elsewhere. Strange, as well.
>
> - Overally: I am confused. All I do by now seems trial-and-error as both
> some more complex mod_rewrite tricks did fail as well as pretty much
> anything including jspwiki.properties configuration. So far it runs on a
> non-HTTPS virtual host being directly exposed as JSPWiki, and does more
> or less good this way, yet being way off the setup I intended to do. Can
> some kind soul out here point me where to have a look to get at least a
> clue what could be broken here, and, subsequently, how to get it fixed?
>
> Thanks a bunch in advance, best regards.
> Kristian
>



-- 
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081

Reply via email to