Welcome! Log In Create A New Profile

Advanced

Load Balancing PHP

May 31, 2010 01:08PM
Hi there I am trying to load balance my website between 2 servers.

I have set them both up to mirror each other

But they are a forum and using PHP ???

This is the code I have but it will only use one site.

It only uses the 127.0.0.1 local address and will not contact my other PHP server ?

I opened the port 9000 on both machines via iptables ???

[code]
upstream newsite {
server 127.0.0.1:9000;
server 15.82.114.196:9000;
}

server
{
listen 80;
server_name thissite.com;
index index.html index.htm index.php;
root /data0/htdocs/www/forum;



location ~ .*\.php?$
{
include fcgi.conf;
fastcgi_pass newsite;
fastcgi_index index.php;


}
[/code]

Thank you very much
Subject Author Posted

Load Balancing PHP

Mickie D May 31, 2010 01:08PM

Re: Load Balancing PHP

Mickie D May 31, 2010 01:43PM

Re: Load Balancing PHP

Mickie D May 31, 2010 02:53PM

Re: Load Balancing PHP

mike May 31, 2010 03:12PM

Re: Load Balancing PHP

Mickie D May 31, 2010 03:29PM

Re: Load Balancing PHP

Mickie D May 31, 2010 03:43PM

Re: Load Balancing PHP

Mickie D May 31, 2010 05:00PM

Re: Load Balancing PHP

mike May 31, 2010 03:36PM

Re: Load Balancing PHP

mike May 31, 2010 03:50PM

Re: Load Balancing PHP

Mickie D May 31, 2010 04:17PM

Re: Load Balancing PHP

mike May 31, 2010 04:22PM

Re: Load Balancing PHP

mike May 31, 2010 05:18PM

Re: Load Balancing PHP

Mickie D June 01, 2010 05:43AM

Re: Load Balancing PHP

mike June 01, 2010 12:24PM

Re: Load Balancing PHP

Mickie D June 01, 2010 12:34PM

Re: Load Balancing PHP

mike June 01, 2010 12:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready