With one server/container on with nginx and another one with fpm, is it better to fastcgi_pass from the nginx to the fpm or proxy_pass to the fpm with addional installtion of nginx on the fpm? Both methods can load balance right? In that case does't the first method have less overhead of an additional server?
Asked
Active
Viewed 1,526 times
4
-
Why would you want to add an extra bit if you don't actually need it? – Michael Hampton Nov 10 '20 at 19:01
-
@MichaelHampton By extra bit, do you mean the nginx on the fpm server? In that case is proxy_pass only needed if case we need reverse proxy to a pre-existing apache backend? – littlePigletWings Nov 11 '20 at 01:51
-
Yes, the extra nginx is unnecessary and so is the extra apache. – Michael Hampton Nov 11 '20 at 02:03
-
@MichaelHampton Just one last query, since in fastcgi_pass both servers need to have the files to serve, is it better to (automated) copy files to both servers or have the files to a networked drive connected to both servers – littlePigletWings Nov 11 '20 at 03:54
-
2What is the difference between proxy-pass-and-fastcgi-pass? – variable Feb 16 '22 at 06:45