I have a small dynamic web site (Wordpress) that I run on a VPS.net server with 376MB RAM. Web serving is the only thing the server in question does, as I've offloaded the database to another geographically separate VPS node.
I'm stuck between running Apache 2 and nginx. Apache 2 is a royal RAM hog, but nginx is painfully slow on page loads.
So, I decided to objectively test each web server by hammering them both with a 30-second siege of 15 concurrent sessions from my database server. Here are the results when serving via Apache 2:
Post the FastCGI settings for PHP from both Apache and nginx.
Unless you're using mod_php, which would explain the boost right there.
Come to think of it, activate caching with a plugin from WP and I bet nginx hauls ass.
You definitely wanting to use a caching plugin when using WordPress and Nginx.
I had a site get on Digg and it got 60K+ viewers in about 12 hours. Server didn't crash once and pages were loading as if no one else was accessing the site.
# Which user runs PHP? (default: www-data)
# Host and TCP port for FASTCGI-Listener (default: localhost:9000)
# Environment variables, which are processed by PHP
"When a man begins to doubt himself, he does something incredibly stupid and thereby is reassured." ::http://www.dustytech.net/:: Personal Website