Hey all,
I'm looking into running Nginx and Apache side by side to power vpsBoard. Currently running only Nginx and serving PHP via php5-fpm, though it seems once every day or so that PHP likes to consume all CPU and throw out errors. I'm looking into different options of correcting this as well, but one thing that has been suggested to me more than once was having Apache serve PHP and let Nginx handle the static load. At the time, I hadn't ran a setup like this before so logged into the dev server and setup a basic LNMP stack and did a reverse proxy to let Apache serve PHP requests. It worked, but it's a no-traffic dev server, so no load so not a very good representation of the setup.
So now I'm curious what the benefits and downfalls of this setup would be. On the existing production VM for the WWW server (currently only runs Nginx and PHP) I have the spare resources, so running Apache side-by-side shouldn't be an issue as far as resources go (I don't think so, anyway). Would having Apache in the mix open the door to attacks like Slowloris? Any other things I should be aware about?
Thanks!
I'm looking into running Nginx and Apache side by side to power vpsBoard. Currently running only Nginx and serving PHP via php5-fpm, though it seems once every day or so that PHP likes to consume all CPU and throw out errors. I'm looking into different options of correcting this as well, but one thing that has been suggested to me more than once was having Apache serve PHP and let Nginx handle the static load. At the time, I hadn't ran a setup like this before so logged into the dev server and setup a basic LNMP stack and did a reverse proxy to let Apache serve PHP requests. It worked, but it's a no-traffic dev server, so no load so not a very good representation of the setup.
So now I'm curious what the benefits and downfalls of this setup would be. On the existing production VM for the WWW server (currently only runs Nginx and PHP) I have the spare resources, so running Apache side-by-side shouldn't be an issue as far as resources go (I don't think so, anyway). Would having Apache in the mix open the door to attacks like Slowloris? Any other things I should be aware about?
Thanks!