mod_rewrite and proxy balancer to non-root path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: mod_rewrite and proxy balancer to non-root path
- From: "Chris Dawson" <xrdawson@xxxxxxxxx>
- Date: Sat, 3 Mar 2007 10:24:47 -0800
- Delivered-to: mailing list users@xxxxxxxxxxxxxxxx
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=ERB30/NycYmZkq1EBPA0Ln4rVPygKC2kksEsHssxK1lo5gHRuJLHvSMg5T4YTZCUtzD4FsN9t6G9GRRYRQyUjUxJn5+hhb1QGD9hfVIijmoBjcO+AQ0Tc+UCAn0gtGaTJdpJa+jc6H7raJeFiTHNI5sY+HNtOIyHxEi01jmh9NY=
- Mailing-list: contact users-help@xxxxxxxxxxxxxxxx; run by ezmlm
- Reply-to: users@xxxxxxxxxxxxxxxx
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]