On 06 Sep 2016, at 09:07, Paul Libbrecht
<paul(a)hoplahup.net> wrote:
Vincent Massol wrote:
Maybe you could also try using the
URLRewriteFilter. It allows to do all sort of wild things on URLs (incoming and
outgoing).
See
http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs#HUrlRewriteFilter That
was my best hope and I looked into the documentation of
URLRewriteFilter:
http://www.tuckey.org/urlrewrite/
Unfortunately, there is nothing there about remapping redirects which is
done by Apache's ProxyPassReverse and that was my big problem: after
logging in or saving a page, my users got redirected to localhost:8080.
What do you need to change? Some HTTP headers?
I don’t know if you’ve noticed but you can also pass some Java class to URLRewriteFilter
if you need something more complex than what is allowed from the XML configuration.
Thanks
-Vincent
PS1: BTW I don’t think you need
https://github.com/polx/absolute-xwiki-urlfactory/blob/master/src/main/java…
. You could simply use xwiki.urlfactory.servletclass
PS2: I see that your URL factory factory only handles MODE_SERVLET. Is PDF export going to
work fine in your case? (since it uses MODE_PDF).
I assume everyone who has set-up an XWiki with an
Apache on the front
(quite an amount, right?) had ProxyPassReverse available somewhere...
That was not my case hence my need.
I'd be interested to hear, however, of people using a CDN together with
XWiki which was the original purpose of this URLFactory that I recycled
here.
Paul