mod_rewrite and proxy balancer to non-root path

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

 



I am attempting to take this URL:

http://foobar.com/path

and rewrite it to balance on a balancer server.  I have a rewrite rule like this:

RewriteRule ^/path(.*)$ balancer://path_balancer%{REQUEST_URI} [P,QSA,L]

I then have a balancer setup like this:

<Proxy balancer://path_balancer>
  BalancerMember http://192.168.2.77:8001
</Proxy>

Of course, I do plan to have more balancer members long term, but for now I am trying to restrict my variables as I troubleshoot.

This does not seem to work for me.  If I remove the path, it works.  Is rewriting to a proxy balancer not supported or buggy in this way?

There is more context here that I am omitting, such as the fact that this is running over SSL, but I am hopeful this is enough information that someone can help me troubleshoot.  Does anyone have a suggestion for debugging the request as it hits the server?  Or, is there a way to provide a request and interactively see the rules apache uses to handle it?

Thanks,
Chris

[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