Do you know any reason to use Apache instead of Nginx? [closed]

Apache is still the most popular web server on the Internet, estimated to serve about 55% of all websites in existence, compared to nginx’s 12% (in Jan 2013).

UPDATE (Apr 2015): Apache still has the largest share at about 40%, and nginx has grown to 15%. Check the above mentioned link for the latest figures.

UPDATE (Jul 2020): nginx has comfortably surpassed Apache in popularity at 37% vs 25%. Apache still has more hits on searches.

It is the oldest web server around, which means that you won’t have any trouble finding people skilled in configuring it.

You’re also slightly more likely to find help when searching the web. SO has ~80,000 tags for Apache, and ~40,000 for nginx.

Installation documents sometimes assume you’re using Apache, often including .htaccess documentation, but not the equivalent nginx configuration:

  • Yii 1.0 was only tested with Apache
  • Yii 1.1 only has clean URL instructions for Apache
  • CodeIgniter 2.0 only has .htaccess instructions for Apache
  • CodeIgniter 3.0 still only has .htaccess instructions for Apache in the clean URL section
  • The Drupal setup page has notes for Apache and IIS, but nginx is only mentioned in the comments, and at least one person is having trouble getting the nginx settings working

My recommendation? Either are perfectly good choices, flip a coin if you can’t find any compelling reasons either way.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)