Welcome! Log In Create A New Profile

Advanced

Re: Upstream setup with proxy and fastcgi?

Francis Daly
April 18, 2011 03:04PM
On Mon, Apr 18, 2011 at 02:45:15PM -0400, TECK wrote:

Hi there,

> Thanks Francis. My goal is to install Nginx only into load balancer.

Ok. But you have mentioned

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

and proxy_pass talks to a http server. So, what http server will you
have listening on port 8000, if not nginx?

If you follow Igor's "don't proxy static", then it doesn't matter. And
if you let the load balancer know about the fastcgi stuff, then it also
doesn't matter.

> location ~ \.php$ {
> fastcgi_pass php;
> include fastcgi.conf;
> }
>
> Can you give me a real example? Location [php urls] is not really clear
> for me.

You want something that will match all of the requests that should be
handled by the fastcgi server, and will match none of the requests that
should not be.

If "location ~ \.php$" works for you, stick with it.

Exactly what you have working already, should keep working. If it doesn't,
then the generated error information will be interesting.

What happened when you tried it?

Good luck,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 259
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