mod_proxy, mod_proxy_balancer

This is a discussion on mod_proxy, mod_proxy_balancer within the Apache forums in Application Servers & Tools category; Hello there, I'm using a bunch of Apache-Worker as proxys (modules proxy_balancer_module, proxy_http_module, proxy_module), with two parent servers. The parent servers are holding the content, which is redundant till now on both servers. At the moment, there is this directive in the apache2.conf on the front proxys: <Proxy balancer://hotcluster> # The below is the hot standby BalancerMember http://host1 BalancerMember http://host2 </Proxy> This worked fine for me, but now the situation has changed: there will be different content on the parent servers. Is there a way to tell the front proxys, that content of a specified url is only available on ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-22-2008, 04:26 AM
Jérôme Patt
Guest
 
Default mod_proxy, mod_proxy_balancer

Hello there,

I'm using a bunch of Apache-Worker as proxys (modules proxy_balancer_module,
proxy_http_module, proxy_module), with two parent servers. The parent servers are holding
the content, which is redundant till now on both servers. At the moment, there is this
directive in the apache2.conf on the front proxys:

<Proxy balancer://hotcluster>
# The below is the hot standby
BalancerMember http://host1
BalancerMember http://host2
</Proxy>
This worked fine for me, but now the situation has changed: there will be different
content on the parent servers. Is there a way to tell the front proxys, that content of a
specified url is only available on host one? Maybe via the rewrite engine?


Thanks in advance for your help,


Jérôme


---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
  #2  
Old 07-22-2008, 04:43 AM
Jérôme Patt
Guest
 
Default Re: mod_proxy, mod_proxy_balancer

Jérôme Patt schrieb:
> Hello there,
>
> I'm using a bunch of Apache-Worker as proxys (modules
> proxy_balancer_module, proxy_http_module, proxy_module), with two parent
> servers. The parent servers are holding the content, which is redundant
> till now on both servers. At the moment, there is this directive in the
> apache2.conf on the front proxys:


Forgot to add:


<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /server-status !
ProxyPass / balancer://hotcluster/

>
> <Proxy balancer://hotcluster>
> # The below is the hot standby
> BalancerMember http://host1
> BalancerMember http://host2
> </Proxy>
> This worked fine for me, but now the situation has changed: there will
> be different content on the parent servers. Is there a way to tell the
> front proxys, that content of a specified url is only available on host
> one? Maybe via the rewrite engine?
>
>
> Thanks in advance for your help,
>
>
> Jérôme
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
  #3  
Old 07-22-2008, 05:28 AM
Jérôme Patt
Guest
 
Default Re: mod_proxy, mod_proxy_balancer

Ok, now i gured out, that something like:


ProxyPass /special-directory1 http://host1
ProxyPass /special-directory2 http://host2
ProxyPass / balancer://hotcluster/

<Proxy balancer://hotcluster>
# The below is the hot standby
BalancerMember http://host1
BalancerMember http://host2
</Proxy>

should do the trick. Correct?

Jérôme

Jérôme Patt schrieb:
> Jérôme Patt schrieb:
>> Hello there,
>>
>> I'm using a bunch of Apache-Worker as proxys (modules
>> proxy_balancer_module, proxy_http_module, proxy_module), with two
>> parent servers. The parent servers are holding the content, which is
>> redundant till now on both servers. At the moment, there is this
>> directive in the apache2.conf on the front proxys:

>
> Forgot to add:
>
>
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
>
> ProxyPass /server-status !
> ProxyPass / balancer://hotcluster/
>
>>
>> <Proxy balancer://hotcluster>
>> # The below is the hot standby
>> BalancerMember http://host1
>> BalancerMember http://host2
>> </Proxy>
>> This worked fine for me, but now the situation has changed: there will
>> be different content on the parent servers. Is there a way to tell the
>> front proxys, that content of a specified url is only available on
>> host one? Maybe via the rewrite engine?
>>
>>
>> Thanks in advance for your help,
>>
>>
>> Jérôme
>>
>>
>> ---------------------------------------------------------------------
>> 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@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>

>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:48 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.