# Recommended webserver for deploying Rails

**URL:** <https://www.ruby-forum.com/t/recommended-webserver-for-deploying-rails/163185>\
**Category:** Rails\
**Created:** [March 18, 2009, 3:41am UTC](https://www.ruby-forum.com/t/recommended-webserver-for-deploying-rails/163185 "2009-03-18T03:41:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![builtbysimple](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Post date:** [March 18, 2009, 3:41am UTC](https://www.ruby-forum.com/t/recommended-webserver-for-deploying-rails/163185/1 "2009-03-18T03:41:14Z")

</div>

Dear all,

What is the best architecture in terms of performance for Rails. Is  
lighttpd + mongrel the most recommended deployment architecture for  
Rails? Or is there any better architecture that outperform this  
architecture?

Thank you very much in advance.

–  
If you can’t believe in God the chances are your God is too small.

Read my blog: [http://joshuajava.wordpress.com/](http://joshuajava.wordpress.com/)  
Follow me on twitter: [http://twitter.com/jpartogi](http://twitter.com/jpartogi)

---

<div class="post-metadata">

**Author:** ![builtbysimple](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Post date:** [March 18, 2009, 10:15am UTC](https://www.ruby-forum.com/t/recommended-webserver-for-deploying-rails/163185/2 "2009-03-18T10:15:00Z")

</div>

phusion passenger + apache?  
t

Joshua P. wrote:

> Dear all,
> 
> What is the best architecture in terms of performance for Rails. Is  
> lighttpd + mongrel the most recommended deployment architecture for  
> Rails? Or is there any better architecture that outperform this  
> architecture?
> 
> Thank you very much in advance.

# –

Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

# [www.meinlschmidt.com](http://www.meinlschmidt.com) www.maxwellrender.cz www.lightgems.cz

---

<div class="post-metadata">

**Author:** ![builtbysimple](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Post date:** [March 18, 2009, 10:37am UTC](https://www.ruby-forum.com/t/recommended-webserver-for-deploying-rails/163185/3 "2009-03-18T10:37:22Z")

</div>

On Mar 18, 2:40 am, Joshua P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Dear all,
> 
> What is the best architecture in terms of performance for Rails. Is  
> lighttpd + mongrel the most recommended deployment architecture for  
> Rails? Or is there any better architecture that outperform this  
> architecture?

As far as I can tell the big 2 these days are nginx + mongrel, apache

- passenger and probably quite a few people using apache + mongrel.

Fred

---

<div class="post-metadata">

**Author:** ![builtbysimple](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Post date:** [March 18, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/recommended-webserver-for-deploying-rails/163185/4 "2009-03-18T16:43:14Z")

</div>

Well, in my experience there are probably three ways to go:

apache + passenger\*  
apache + mongrel/thin  
nginx + mongrel/thin

Personally, I run with just apache + passenger from this point  
forward. It has done everything I need, and has had zero downtime due  
to the configuration, and more due to my idiotic way of handling  
airflow inside the server case.

---

<div class="post-metadata">

**Author:** ![builtbysimple](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Post date:** [March 18, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/recommended-webserver-for-deploying-rails/163185/5 "2009-03-18T16:55:22Z")

</div>

Joshua P. wrote:

> Dear all,
> 
> What is the best architecture in terms of performance for Rails. Is  
> lighttpd + mongrel the most recommended deployment architecture for  
> Rails?  
> […]

I think most people are either using Passenger (my current choice) or  
one of the Thin-based solutions. JRuby inside a Java servlet container  
might be worth looking at too; I’ve never gone that route, but JRuby is  
supposed to be very fast. OTOH, Java servlet containers can be a pain.

## Best,

Marnen Laibow-Koser  
removed\_email\_address@domain.invalid  
[http://www.marnen.org](http://www.marnen.org)
