Welcome! Log In Create A New Profile

Advanced

Re: Upstream setup with proxy and fastcgi?

April 18, 2011 03:11PM
I think I understand now. This configuration will require that I have installed Nginx in all servers listed below:

upstream proxy {
server 1.localserverip:8000;
server 2.localserverip:8000;
server 3.localserverip:8000;
server 4.localserverip:8000;
}

when in real life, I will have Nginx installed into 1.localserverip only.
Presuming that I plan to add another balancer to the equation:

upstream proxy {
server 1.localserverip:8000;
server 2.localserverip:8000;
}

while I keep serving the php files from all servers:

upstream php {
server 1.localserverip:9000;
server 2.localserverip:9000;
server 3.localserverip:9000;
server 4.localserverip:9000;
}

That will require I install Nginx into 1.localserverip and 2.localserverip. So far, it is simple and logical.
My concern is what will happen with my fastcgi as well the try_files directives:

upstream proxy {
server 1.localserverip:8000;
server 2.localserverip:8000;
}

upstream php {
server 1.localserverip:9000;
server 2.localserverip:9000;
server 3.localserverip:9000;
server 4.localserverip:9000;
}

location / {
proxy_pass http://proxy;
}

location /forum/ {
try_files $uri $uri/ /forum/data.php$args;
}

location ~ \.php$ {
fastcgi_pass php;
include fastcgi.conf;
}

Can you post a quick configuration that will work with the above setup? Thanks.
Subject Author Posted

Upstream setup with proxy and fastcgi?

TECK April 14, 2011 02:15PM

Re: Upstream setup with proxy and fastcgi?

TECK April 16, 2011 06:49PM

Re: Upstream setup with proxy and fastcgi?

Igor Sysoev April 18, 2011 10:12AM

Re: Upstream setup with proxy and fastcgi?

TECK April 18, 2011 11:13AM

Re: Upstream setup with proxy and fastcgi?

TECK April 18, 2011 12:29PM

Re: Upstream setup with proxy and fastcgi?

Francis Daly April 18, 2011 01:08PM

Re: Upstream setup with proxy and fastcgi?

TECK April 18, 2011 01:45PM

Re: Upstream setup with proxy and fastcgi?

TECK April 18, 2011 02:25PM

Re: Upstream setup with proxy and fastcgi?

Igor Sysoev April 18, 2011 02:02PM

Re: Upstream setup with proxy and fastcgi?

TECK April 18, 2011 02:45PM

Re: Upstream setup with proxy and fastcgi?

Francis Daly April 18, 2011 03:04PM

Re: Upstream setup with proxy and fastcgi?

Igor Sysoev April 18, 2011 02:30PM

Re: Upstream setup with proxy and fastcgi?

Francis Daly April 18, 2011 02:36PM

Re: Upstream setup with proxy and fastcgi?

TECK April 18, 2011 03:11PM

Re: Upstream setup with proxy and fastcgi?

TECK April 22, 2011 05:02AM

Re: Upstream setup with proxy and fastcgi?

Francis Daly April 23, 2011 06:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 201
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