# Lighttpd or Ngnix

**URL:** <https://www.ruby-forum.com/t/lighttpd-or-ngnix/126541>\
**Category:** Deployment\
**Created:** [January 19, 2008, 6:29am UTC](https://www.ruby-forum.com/t/lighttpd-or-ngnix/126541 "2008-01-19T06:29:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [January 19, 2008, 6:29am UTC](https://www.ruby-forum.com/t/lighttpd-or-ngnix/126541/1 "2008-01-19T06:29:53Z")

</div>

Hi,

Lighttpd or Ngnix. Which one is best for production env?  
Kindly throw some reasons for the best one, and also for the  
worst one.

Ayyanar

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [January 20, 2008, 3:23am UTC](https://www.ruby-forum.com/t/lighttpd-or-ngnix/126541/2 "2008-01-20T03:23:22Z")

</div>

ive been reading many blogs about a different setups. most blogs that i  
have read, nginx seems very recommended. however, apache has many  
documentation to help handle non rails stuff.

Ayyanar Aswathaman wrote:

> Hi,
> 
> Lighttpd or Ngnix. Which one is best for production env?  
> Kindly throw some reasons for the best one, and also for the  
> worst one.
> 
> Ayyanar

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [January 20, 2008, 9:27am UTC](https://www.ruby-forum.com/t/lighttpd-or-ngnix/126541/3 "2008-01-20T09:27:10Z")

</div>

It’s not really an either/or thing - it is quite feasible to have  
nginx handling all incoming requests, and maybe serving static pages  
itself, while passing rails requests to upstream mongrels, and other  
requests - php, or whatever - to apache.

I’ve not done any tests, but it just ‘feels right’ to have something  
fast at the front end, and so far this setup works for me 😉

Tony
