LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mod_rewrite for rewriting proxied path (https://www.linuxquestions.org/questions/linux-server-73/mod_rewrite-for-rewriting-proxied-path-533251/)

GSMD 02-28-2007 08:01 AM

mod_rewrite for rewriting proxied path
 
I've installed monit and proxied it to run behind apache:
Code:

<Location /monit>
        ProxyPass http://localhost:2812
        ProxyPassReverse http://localhost:2812
</Location>

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?

Thanks.


All times are GMT -5. The time now is 11:08 AM.