Reverse proxying Mediawiki

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux