Thread: Apache Proxy
View Single Post
Old 16th April 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

If you wanted to do something like feed static content to one server, and load balance scripts across the other two servers, I believe it would be easy enough to achieve with nginx.

Basically you would setup each of the local servers accordingly, e.g. a pair running PHP and a third server just serving static content. For testing, you could even run three of them on locally on the same machine with the proper configuration. Then you should be able to setup nginx to load balance between the two PHP scripts, and proxy requests for PHP files to that, and proxy everything else to the server serving your static content.

Other solutions are also possible,
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote