Maxim Dounin
June 21, 2017 12:56PM
Hello!

On Wed, Jun 21, 2017 at 12:09:17PM -0400, Olaf van der Spek wrote:

> What does it take to enable KeepAlive for FastCGI upstream servers?
> I've set upstream { keepalive 99; } and location { fastcgi_keep_conn on; ]
> but nginx is still closing the connection after each request.

With FastCGI, keepalive directive in the upstream{}
block and fastcgi_keep_conn in the location with fastcgi_pass
should be enough. Detailed example can be found in the documentation,
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive.

If it doesn't work for you, consider providing more details on
your configuration and what you observe.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

FastCGI KeepAlive

Olaf van der Spek June 21, 2017 12:09PM

Re: FastCGI KeepAlive

Maxim Dounin June 21, 2017 12:56PM

Re: FastCGI KeepAlive

Olaf van der Spek June 21, 2017 02:21PM

Re: FastCGI KeepAlive

Olaf van der Spek June 22, 2017 06:00AM

Re: FastCGI KeepAlive

Maxim Dounin June 22, 2017 09:52AM

Re: FastCGI KeepAlive

Olaf van der Spek June 22, 2017 10:10AM

Re: FastCGI KeepAlive

Olaf van der Spek June 22, 2017 10:23AM

Re: FastCGI KeepAlive

Maxim Dounin June 22, 2017 11:32AM

Re: FastCGI KeepAlive

Olaf van der Spek June 21, 2017 03:48PM

Re: FastCGI KeepAlive

Francis Daly June 21, 2017 06:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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