Why I Do Combining Apache and Nginx Together?

Why I do combining apache and nginx together?

Nginx and apache are powerful and effective servers by nowadays. Apache currently reigns as the number 1 server for websites and since its public release in 2006. And nginx has taken the world by storm and is now the number 2 server for active sites.

The Reason Why I Use Nginx and Apache Together is

Nginx
- nginx serves static files (images, css, html etc.) really fast and efficient and passes php and .htaccess requests to apache for processing.
- nginx needs the help of php-fpm or similar modules for dynamic content.

Apache
- apache is hard on server memory.
- apache serves php and .htaccess (most cms site like wordpress needs it for rewrite) and if you throw in a php opcode cache like zend opcache or xcache it should serve php even faster.

nginx + apache with php opcache = performance and server resource efficiency

So far so good, in the next article I will show you the configurations. That’s it!!! See ya!!! :)