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


#1

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.


#2

No one wants to share :slight_smile:


#3

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


#4

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


#5