Hello,
With the current configuration we have php-fpm running on the same machine as nginx. We want to move php-fpm to run on separate machines for scaling purpose.
location ~*\.php {
root /home/ec2-user/www/api/;
include /home/ec2-user/conf/proxy.conf;
include /home/ec2-user/conf/fastcgi.conf;
if (-f $request_filename) {
fastcgi_pass 127.0.0.1:9000;
}
}
Updating fastcgi_pass to new host is not working.
Q1 Is the root config required?
Q2 How/Where does the fpm look for requested files?
Q3 I understand all fcgi parameters are passed as is.
Please suggest the nginx configuration that would work and php-fpm configuration if any.
Should we know/consider something from performance/security point of view before we move to this set up.
Thank you in advance.
Regards
Amod
Regards
Amod