NGINX and APACHE together or only NGINX?
I wonder what are the adventages and disadventages of using NGINX only instead of NGINX & APACHE together. Here’s a detailed set of answers:
Not as much as the overhead incurred from loading apache. Apache itself, with its plethora of modules and options, is a memory and CPU hog compared to nginx. Apache 2.4 is less so, but still more.
This is one of the most missed features of Apache, but also one of the most disk-intensive ones. Did you know that Apache needs to traverse all the directories up until webroot in order to read all the htaccess files for every request? The convenience is the pay-off. If you prefer convenience over a slight gain, keep to it. There are ways to improve Apache efficiency by coalescing all your rules into a single htaccess or through the use of Location blocks in the config.
Because we’re building and optimizing a small VPS with very basic hardware requirement. Why do you need Apache? Only Nginx is the answer.