Linux PHP Webserver + Apache or Nginx [closed] Linux PHP Webserver + Apache or Nginx [closed] nginx nginx

Linux PHP Webserver + Apache or Nginx [closed]


You could mix them both. Use Apache for serving PHP and use nginx for static pages / images. Apache is more friendly configuration wise (htaccess, htpasswd, rewrite rules, etc), nginx is fast in regard to static assets.


Nginx ...

Hell wordpress.com is using it ... :)

Here is some good data ... you may want to through varnish into the mix as well. http://www.garron.me/linux/apache-vs-nginx-php-fpm-varnish-apc-wordpress-performance.html


Our sysadmins use nginx to serve the static content and apache to serve the other content. I'm not pretty sure how to create such setup, because I'm a developer only, but on our machines we're using both of them at once.