Apache Server configuration support - apache / load balancing and firewalls... general question.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > May 2006 > apache / load balancing and firewalls... general question.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author apache / load balancing and firewalls... general question.
bajanman

2006-05-15, 1:17 pm

Hello,
I'm hoping someone can either point me in the right direction for
documentation,
or just let me know their opinion on my situation.

We have a webserver, that uses the latest apache.
it uses load balancing, with 2 web servers, inside our firewall, with
port 80 open.

We use a bit of authentication, and integration with an MS SQL database
and transactions.
These are done inside the firewall, so there are no ports open on the
database servers.

Apache -> MS SQL database (done inside).

our pages, also have images. BUT, they are being referenced outside
with another 2 servers with ports 80 open.

SO, we have 2 web servers, 2 image servers and 2 database servers for
redundancy.

What I would like to know, is "why" do the 2 image servers have to have
an "outside" link of port 80?

Can't apache do a mod write? or redirect, and point to the images, with
a reference to the IP of the "inside" machine?

Its doing this already with the MS SQL....

I hope I explained it properly...
Thanks

William

Robert Ionescu

2006-05-29, 5:40 pm

bajanman wrote:
> Can't apache do a mod write? or redirect, and point to the images, with
> a reference to the IP of the "inside" machine?


Why don't you use a separate balancer for images? Like

RewriteEngine on
RewriteRule ^/(.+\.(?:gif|jpe?g|png))$ balancer://mycluster1/$1 [P]
# the rest
RewriteRule ^/(.*) balancer://mycluster2/$1 [P]

<Proxy balancer://mycluster1/>
BalancerMember http://1.2.3.4/
BalancerMember http://1.2.3.5/
</Proxy>

<Proxy balancer://mycluster2/>
BalancerMember http://1.2.3.6/
BalancerMember http://1.2.3.7/
</Proxy>

--
Robert
bajanman

2006-05-29, 5:40 pm

actually I found out, that we're using "round robin" to make the
servers redundant.

Is there a better way of doing it?
Thanks

William

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com