Background: 3 servers, 1 load balancer and 2 PHP app servers.
Do I need to install nginx on the 2 app servers? Or can I pass directly from the load balancer to PHP-FPM running on the app servers?
Yes, you can. First you need to configure PHP-FPM to listen on an external IP instead of localhost, which is the default. Add/change the following in
and restart PHP-FPM. Make sure that that port number is allowed by any firewalls between the load balancer and the app servers. The configure nginx to proxy to the app servers on that port number: