Hello all,
I currently have nginx configured to run in front of Apache, serving all static files and then proxying all other requests to the Apache backend. To serve our PHP documents, I'm wondering if the most efficient way to do this is via tried-and-true mod_php or would it be best to configure Apache to forward requests to FastCGI? My concern is that this adds another layer of communication i.e. nginx -> Apache -> FastCGI versus taking FastCGI out of the equation. There are obvious reasons that FastCGI is favored, particularly in situations where memory overhead is a concern, but I'm more concerned with performance.
What's the best solution for my needs? In either solution, is it considered safe to use Apache's mpm_worker threading mechanism versus prefork? I have read of various issues when using worker, whereas prefork seems to be the safe route.
Thank you in advance for your guidance!
Dave
Edited 1 time(s). Last edit at 11/17/2009 05:51PM by daveyfx.