mod_rewrite for rewriting proxied path

Discussion in 'Server Operation' started by GSMD, Feb 28, 2007.

  1. GSMD

    GSMD New Member

    I've installed monit and proxied it to run behind apache:
    <Location /monit>
            ProxyPass http://localhost:2812
            ProxyPassReverse http://localhost:2812
    So what I get now is that links in monit look like http://myhost/link instead of http://myhost/monit/link. I guess mod_rewrite could help in this case, yet after reading docs can't figure out what the rewrite rule should look like.
    Could anyone please help?


Share This Page