Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Proxy Balancer

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


tanner.postert at gmail

Jul 1, 2008, 3:06 PM

Post #1 of 5 (103 views)
Permalink
Proxy Balancer

I have a proxy Balancer set up like this:

<Proxy balancer://vsBalancer>
BalancerMember http://192.168.200.206 loadfactor=20 status=D
BalancerMember http://192.168.200.212 loadfactor=20 status=D
BalancerMember http://192.168.200.182 loadfactor=100 status=D
BalancerMember http://192.168.200.190 loadfactor=100
ProxySet lbmethod=bytraffic
</Proxy>
ProxyPass / balancer://vsBalancer/
<Location />
ProxyPassReverse /
</Location>

I want all requests the this balancer machine to be handled by 1 of the 4
machines in the balancer. (I have 3 of them disabled for some further
testing, so its basically just a single reverse proxy).

I have 3 problems.

1. Host information is not passed to the balancer member, which means I
can't have virtual hosts set up on the balancers? How do I do this?
(currently the default virtual host is picking everything up)
2. I'm having a problem with the reverse proxy and mod_dir. Currently if
request "www.example.com/whatever" I'm getting rewritten to
192.168.200.190/whatever/ which is obviously not a public address and
won't resolve. This happens whether or not I have mod_dir enabled on the
balancer server or not. I thought that the ProxyPassReverse was supposed to
re-write.
3. Also, i have a ton of rewrites that happen on each of the balancer
members, do those need to take place on the balancer server machine instead?
or can they remain on the balancer member machines and be re-written with
ProxyPassReverse?

Thanks in advance.

Tanner


loco at d0pefish

Jul 1, 2008, 3:37 PM

Post #2 of 5 (101 views)
Permalink
Re: Proxy Balancer [In reply to]

Tanner Postert wrote:

Your first question is easy to answer:

> 1. Host information is not passed to the balancer member, which means
> I can't have virtual hosts set up on the balancers? How do I do
> this? (currently the default virtual host is picking everything up)

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost

Regards,

Peter

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


tanner.postert at gmail

Jul 1, 2008, 3:42 PM

Post #3 of 5 (102 views)
Permalink
Re: Proxy Balancer [In reply to]

Oh, I misread that documentation. i thought that just overwrites the client
information, rather than reading it from the x_forwarded_ variables. I'll
give that a shot.

On 7/1/08, Peter Hinse <loco[at]d0pefish.de> wrote:
>
> Tanner Postert wrote:
>
> Your first question is easy to answer:
>
> 1. Host information is not passed to the balancer member, which means
>> I can't have virtual hosts set up on the balancers? How do I do
>> this? (currently the default virtual host is picking everything up)
>>
>
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost
>
> Regards,
>
> Peter
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]httpd.apache.org
>
>


tanner.postert at gmail

Jul 1, 2008, 4:15 PM

Post #4 of 5 (102 views)
Permalink
Re: Proxy Balancer [In reply to]

Well, that fix actually fixed the other problems. Now the host is the
original host, so the rewrite works perfectly.

On 7/1/08, Tanner Postert <tanner.postert[at]gmail.com> wrote:
>
> Oh, I misread that documentation. i thought that just overwrites the client
> information, rather than reading it from the x_forwarded_ variables. I'll
> give that a shot.
>
> On 7/1/08, Peter Hinse <loco[at]d0pefish.de> wrote:
>>
>> Tanner Postert wrote:
>>
>> Your first question is easy to answer:
>>
>> 1. Host information is not passed to the balancer member, which means
>>> I can't have virtual hosts set up on the balancers? How do I do
>>> this? (currently the default virtual host is picking everything up)
>>>
>>
>> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost
>>
>> Regards,
>>
>> Peter
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
>> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
>> For additional commands, e-mail: users-help[at]httpd.apache.org
>>
>>
>


tanner.postert at gmail

Jul 1, 2008, 4:48 PM

Post #5 of 5 (95 views)
Permalink
Re: Proxy Balancer [In reply to]

Looks like I found another issue. BTW, I'm using 2.2.2

when I try to add:
<Proxy balancer://vsBalancer>
BalancerMember http://192.168.200.190 loadfactor=1
BalancerMember http://192.168.200.206 status=+H
</Proxy>

as described here:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass

I get the following error: "BalancerMember Unknow status parameter option"

When I try status=H I get the same thing? Am I missing something to do hot
spares?


On 7/1/08, Tanner Postert <tanner.postert[at]gmail.com> wrote:
>
> Well, that fix actually fixed the other problems. Now the host is the
> original host, so the rewrite works perfectly.
>
> On 7/1/08, Tanner Postert <tanner.postert[at]gmail.com> wrote:
>>
>> Oh, I misread that documentation. i thought that just overwrites the
>> client information, rather than reading it from the x_forwarded_ variables.
>> I'll give that a shot.
>>
>> On 7/1/08, Peter Hinse <loco[at]d0pefish.de> wrote:
>>>
>>> Tanner Postert wrote:
>>>
>>> Your first question is easy to answer:
>>>
>>> 1. Host information is not passed to the balancer member, which means
>>>> I can't have virtual hosts set up on the balancers? How do I do
>>>> this? (currently the default virtual host is picking everything
>>>> up)
>>>>
>>>
>>> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost
>>>
>>> Regards,
>>>
>>> Peter
>>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
>>> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
>>> For additional commands, e-mail: users-help[at]httpd.apache.org
>>>
>>>
>>
>

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.