Nginx, and sendfile, tcp_nopush, keepalive_requests for PHP-FPM config question

Having this will help and optimize PHP-FPM?

location ~ \.php$ {
sendfile on;
tcp_nopush off;
keepalive_requests 0;
}

Similar Article: http://technosophos.com/2010/02/01/nginx-tcpnopush-sendfile-and-memcache-right-configuration.html Please share your thoughts about this.

No one wants to share :slight_smile:

Hi @RoldanLT,

To optimize Nginx in better way, I will recomened you to use following settings

sendfile on;
tcp_nopush on;
tcp_nodelay on;

Although this settings will change as per your needs, So Its better if you go with this artical for more reading: https://t37.net/nginx-optimization-understanding-sendfile-tcp_nodelay-and-tcp_nopush.html

I’m not talking about nginx here, It’s specific for PHP-FPM.