You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mickael CANEVET <ca...@embl.fr> on 2010/01/29 09:33:57 UTC

[users@httpd] Reverse proxying Mediawiki

Hi,

I try to put a Mediwiki powered website behind a reverse proxy.

It works well while there is no space in URL
(http://mydomain.tld/wwi/index.php?title=Main_Page for example), but
when there is a space on URL
(http://mydomain.tld/wwi/index.php?title=Main Page for example), it does
not work (the URL is rewritten in
(http://mydomain.tld/index.php?title=Main_Page ).

I think I misconfigured mod_proxy_html.

Here is my configuration file:

<Proxy balancer://wwi>
    BalancerMember http://172.26.9.223:8080 # Backend server hosting
Mediawiki
    BalancerMember http://172.26.9.224:8080 # Backend server hosting
Mediawiki
</Proxy>

ProxyPreserveHost On
ProxyPass /wwi/ balancer://wwi/
ProxyHTMLURLMap  balancer://wwi/ /wwi

<Location /wwi/>
    ProxyPassReverse /
    ProxyHTMLEnable  On
    ProxyHTMLExtended    On
    ProxyHTMLURLMap  /index.php        /wwi/index.php
    ProxyHTMLURLMap  /redirect.php     /wwi/redirect.php
    ProxyHTMLURLMap  /skins/           /wwi/skins/
    ProxyHTMLURLMap  /images/          /wwi/images/
    RequestHeader    unset       Accept-Encoding
</Location>


Can anybody help me please ?

Thanks a lot in advance.


Mickaƫl