When comparing Nginx vs Lighttpd, the Slant community recommends Nginx for most people. In the question“What are the best web servers?” Nginx is ranked 1st while Lighttpd is ranked 3rd.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Free and open source
Pro Fast and built for scalability
Nginx is event-driven, asynchronous, non-blocking and single threaded (one master process + worker processes). This allows nginx to be manage resources more efficiently compared to thread-based models (like Apache).
Pro Lightweight
Nginx offers a more basic set of functions out of the box compared most web servers. Extra functionality can be added via modules.
Pro Highly efficient memory use
Pro Highly efficient CPU use
Pro Advanced load balancing and caching
Pro Event Based Request Handling
Does not fork/thread per request.
Pro Easily configurable
Configuration files are concise and simple.
Pro Simple setup for static content
Pro Fast and built for scalability
Lighttpd is event-driven, asynchronous, non-blocking and single threaded. This allows lighttpd to be manage resources more efficiently compared to thread-based models (like Apache).
Pro Highly efficient memory use
With a small memory footprint compared to other web-servers, effective management of the cpu-load.
Pro Free and open source
Pro Lightweight
Lighttpd offers a more basic set of functions out of the box compared most web servers. Extra functionality can be added via modules.