I've two servers:
- Application and database.
- Assets (images).
In first I personally use Nginx (with Passenger and MongoDB). As well as in another, what your best option? Nginx, LightHTTP, Apache or any other?
You might like to consider the link that follows to serve static files.
I've read and used apache for this function but apperantly in line with the benchmarks, nginx and lightHTTP serves static files better.
Listed here are Nginx and Lighty's performances, memory and CPU usage in comparison:
And also the KV store available above is a lot faster than MongoDB to help you play one single server to create dynamic contents, query/feed/update a KV store, and serve images.