I been hearing that lighttpd is faster then nginx but i also heard that lighttpd has a lot of security leaks and memory leaks,
was just wondering what you guys think is the better solution for a medium traffic server.
I've heard the opposite, that nginx outperforms lighttpd but it probably depends on the benchmark used, how well the reviewer optimises each bit of software etc.
I've been using lighttpd for quite a few years and haven't experienced the memory leaks that many people have been talking about however my site is very low traffic so this may be why?
I'm considering switching to nginx though as lighttpd development seems to have slowed a lot recently (since the founder took a job at MySQL). From what I've heard nginx makes configuring things easier than lighttpd too.
nginx is generally easier to use, and have much better performance when it comes to eg proxying. Not that it really matter on a medium traffic server. (depending on your definition of medium traffic)
I'd say nginx, as it is a lot easier to configure and use.
If you are really concerned about using only the most performant server, then set up a test server with your site on it and use a load testing tool such as JMeter to compare them.
people really think nginx is easier? I've used both and much prefer lighttpd's config file
Maybe my knowledge of Lighttpd is outdated, I last used it ~6 years ago when I set it up with FastCGI for PHP, and it was a pain in the rear to set up & get working right. It was worth it in the end though, it really helped the server cope under load compared to Apache.
On the other hand, setting up nginx with PHP-FPM is a doddle, imho. Each to their own