Copy /opt/nginx/conf/globals/php-fpm_standard.conf and php-fpm_wildcards.conf to custom.php-fpm_standard.conf and custom.php-fpm_standard.conf and then modified both of this custom file:
from:
location ~ \.php$ {
#include fastcgi_params;
#fastcgi_pass 127.0.0.1:$var_fpmport;
fastcgi_pass unix:/opt/configs/php-fpm/sock/$var_user.sock;
fastcgi_index index.php;
to:
upstream loadbal01 {
server domain1.com:80; // or their IP
server domain2.com:80; // or their IP
}
location ~ \.php$ {
#include fastcgi_params;
fastcgi_pass http://loadbal01;
#fastcgi_pass unix:/opt/configs/php-fpm/sock/$var_user.sock;
fastcgi_index index.php;