{"id":371,"date":"2006-02-21T11:00:43","date_gmt":"2006-02-21T19:00:43","guid":{"rendered":"http:\/\/lianza.org\/blog\/?p=370"},"modified":"2006-02-21T11:00:43","modified_gmt":"2006-02-21T19:00:43","slug":"ruby-on-rails-what-server-to-use","status":"publish","type":"post","link":"https:\/\/lianza.org\/blog\/2006\/02\/21\/ruby-on-rails-what-server-to-use\/","title":{"rendered":"Ruby on Rails &#8211; What server to use?"},"content":{"rendered":"<p>With Ruby on Rails there are a number of options on what server to use.  Supposedly Lighttpd is &#8220;<a href=\"http:\/\/wiki.rubyonrails.org\/rails\/pages\/Lighttpd\">fast as lightning<\/a>&#8221; but <a href=\"http:\/\/wiki.rubyonrails.org\/rails\/pages\/fastcgi\">FastCGI<\/a> on Apache is the &#8220;standard&#8221; method for production use.<\/p>\n<p>Out of curiosity, I went to <a href=\"http:\/\/www.43things.com\/\">a site<\/a> which I knew ran Ruby on Rails and gets a lot of traffic, and inspected the HTTP headers.<\/p>\n<p>Unsurprisingly, the response when requesting the main page included this header:<br \/>\n<code>Server: Apache\/1.3.33 (Unix) mod_deflate\/1.0.21 mod_fastcgi\/2.4.2<\/code><\/p>\n<p>However, as the browser started requesting images, they came back with this header:<br \/>\n<code>Server: WEBrick\/1.3.1 (Ruby\/1.8.2\/2004-12-25)<\/code><\/p>\n<p>It seems like they&#8217;re using the so-called not-for-production webserver to serve up static content.  That&#8217;s interesting, given that <a href=\"http:\/\/mark-watson.blogspot.com\/2006\/02\/apache-vs-lighttpd-vs-webrick.html\">some<\/a> have described the usage of that server to be reserved for cases when you have low concurrent users and mostly dynamic content.  This qualifies as neither.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Ruby on Rails there are a number of options on what server to use. Supposedly Lighttpd is &#8220;fast as lightning&#8221; but FastCGI on Apache is the &#8220;standard&#8221; method for production use. Out of curiosity, I went to a site which I knew ran Ruby on Rails and gets a lot of traffic, and inspected [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":["post-371","post","type-post","status-publish","format-standard","hentry","category-techie"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5TCqO-5Z","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/lianza.org\/blog\/wp-json\/wp\/v2\/posts\/371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lianza.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lianza.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lianza.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lianza.org\/blog\/wp-json\/wp\/v2\/comments?post=371"}],"version-history":[{"count":0,"href":"https:\/\/lianza.org\/blog\/wp-json\/wp\/v2\/posts\/371\/revisions"}],"wp:attachment":[{"href":"https:\/\/lianza.org\/blog\/wp-json\/wp\/v2\/media?parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lianza.org\/blog\/wp-json\/wp\/v2\/categories?post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lianza.org\/blog\/wp-json\/wp\/v2\/tags?post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}