I was going to launch my new app on Apache, but found that getting fastcgi up and running was just a royal pain in the you know what. So I loaded lighttpd and after working out a few bugs in getting fastcgi working, it was up and running. I''m very impressed by its speed and ease of configuration. I''m developing on my WinXP laptop just simply using Webbrick and then move things over to my production box running SuSE, lighttpd w/ fcgi. It works just fine (just make sure your bash line in dispatch is pointing to your linux ruby and not your windows ruby. :-)>>> "Warren Seltzer" <warrens-uf+uqdaZT6qTt3WsUyM9gg@public.gmane.org> 09/28/05 02:04PM >>>I see Rails people like lighttpd. Where can I find more info on comparing them to each other? Can I develop on one and run production on the other, as long as they both have fastcgi? Can I set up either one on my Windows XP box for development? Also, I see LightSpeed is claiming to be faster than either of them, what''s your experience? Thanks, Warren Seltzer _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails ==================DISCLAIMER===============================This email may contain confidential and privileged material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies of it from your system. The sender accepts no responsibility for viruses and it is your responsibility to scan attachments (if any). No contracts may be concluded on behalf of the sender by means of email communications unless expressly stated to the contrary. ==================DISCLAIMER================================
For production, I have been running lighttpd behind apache2 using mod_proxy. Lighttpd has been really nice to me, but there is too much apache web server can do for me out front, and too much of an understanding of why apache is multiprocess (go on, let one die, makes no difference!) in order to *always* serve *something* even if it is a cute wrapper around a 500 error. They *will* get a response. I am eager to work with apache2 and scgi as well as this can remove one more variable from the system, ditto mod_fcid instead of mod_fcgi. mod_proxy and lighttpd have been wonderful to work with though, and very easy to configure: apache2 config (snippet with the mod_proxy and vhost config): RewriteEngine on <VirtualHost *> ServerName railsapp.example.org ProxyPass / http://localhost:8007/ ProxyPassReverse / http://localhost:8007/ </VirtualHost> lighttpd config (whole thing): server.port = 8007 server.bind = "127.0.0.1" server.modules = ( "mod_rewrite", "mod_fastcgi" ) url.rewrite = ("^/$" => "index.html", "^([^.]+)$" => "$1.html") server.error-handler-404 = "/dispatch.fcgi" server.document-root = "/var/vhosts/railsapp.example.org/public" server.errorlog = "/var/vhosts/railsapp.example.org/log/server.log" fastcgi.server = (".fcgi" => ("localhost" => ( "min-procs" => 5, "max-procs" => 5, "socket" => "/tmp/railsapp.example.org.fcgi.socket", "bin-path" => "/var/vhosts/railsapp.example.org/public/ dispatch.fcgi", "bin-environment" => ("RAILS_ENV" => "production") ) ) ) On Sep 28, 2005, at 6:16 PM, Marc Love wrote:> I was going to launch my new app on Apache, but found that getting > fastcgi up and running was just a royal pain in the you know what. > > So I loaded lighttpd and after working out a few bugs in getting > fastcgi working, it was up and running. I''m very impressed by its > speed > and ease of configuration. > > I''m developing on my WinXP laptop just simply using Webbrick and then > move things over to my production box running SuSE, lighttpd w/ fcgi. > It works just fine (just make sure your bash line in dispatch is > pointing to your linux ruby and not your windows ruby. :-) > > >>>> "Warren Seltzer" <warrens-uf+uqdaZT6qTt3WsUyM9gg@public.gmane.org> 09/28/05 02:04PM >>> >>>> > I see Rails people like lighttpd. > > Where can I find more info on comparing them to each other? > > Can I develop on one and run production on the other, as long as they > both have fastcgi? > > Can I set up either one on my Windows XP box for development? > > Also, I see LightSpeed is claiming to be faster than either of them, > what''s your > experience? > > Thanks, > Warren Seltzer > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > ==================DISCLAIMER===============================> This email may contain confidential and privileged material for the > sole use of the intended recipient. > Any review or distribution by others is strictly prohibited. If you > are not the intended recipient, please contact the sender and > delete all copies of it from your system. > The sender accepts no responsibility for viruses and it is your > responsibility to scan attachments (if any). > No contracts may be concluded on behalf of the sender by means of > email communications unless expressly stated to the contrary. > ==================DISCLAIMER===============================> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Speaking to mod_proxy -- in 2.1/2.2 mod_proxy_balancer will make this even nicer =) -Brian On Sep 29, 2005, at 8:43 AM, Brian McCallister wrote:> For production, I have been running lighttpd behind apache2 using > mod_proxy. Lighttpd has been really nice to me, but there is too > much apache web server can do for me out front, and too much of an > understanding of why apache is multiprocess (go on, let one die, > makes no difference!) in order to *always* serve *something* even > if it is a cute wrapper around a 500 error. They *will* get a > response. > > I am eager to work with apache2 and scgi as well as this can remove > one more variable from the system, ditto mod_fcid instead of > mod_fcgi. mod_proxy and lighttpd have been wonderful to work with > though, and very easy to configure: > > apache2 config (snippet with the mod_proxy and vhost config): > > RewriteEngine on > > <VirtualHost *> > ServerName railsapp.example.org > ProxyPass / http://localhost:8007/ > ProxyPassReverse / http://localhost:8007/ > </VirtualHost> > > > lighttpd config (whole thing): > > server.port = 8007 > server.bind = "127.0.0.1" > server.modules = ( "mod_rewrite", "mod_fastcgi" ) > url.rewrite = ("^/$" => "index.html", "^([^.]+)$" => "$1.html") > server.error-handler-404 = "/dispatch.fcgi" > server.document-root = "/var/vhosts/railsapp.example.org/public" > server.errorlog = "/var/vhosts/railsapp.example.org/log/server.log" > fastcgi.server = (".fcgi" => > ("localhost" => > ( "min-procs" => 5, > "max-procs" => 5, > "socket" => "/tmp/railsapp.example.org.fcgi.socket", > "bin-path" => "/var/vhosts/railsapp.example.org/public/ > dispatch.fcgi", > "bin-environment" => ("RAILS_ENV" => "production") > ) > ) > ) > > On Sep 28, 2005, at 6:16 PM, Marc Love wrote: > > >> I was going to launch my new app on Apache, but found that getting >> fastcgi up and running was just a royal pain in the you know what. >> >> So I loaded lighttpd and after working out a few bugs in getting >> fastcgi working, it was up and running. I''m very impressed by its >> speed >> and ease of configuration. >> >> I''m developing on my WinXP laptop just simply using Webbrick and then >> move things over to my production box running SuSE, lighttpd w/ fcgi. >> It works just fine (just make sure your bash line in dispatch is >> pointing to your linux ruby and not your windows ruby. :-) >> >> >> >>>>> "Warren Seltzer" <warrens-uf+uqdaZT6qTt3WsUyM9gg@public.gmane.org> 09/28/05 02:04PM >>> >>>>> >>>>> >> I see Rails people like lighttpd. >> >> Where can I find more info on comparing them to each other? >> >> Can I develop on one and run production on the other, as long as they >> both have fastcgi? >> >> Can I set up either one on my Windows XP box for development? >> >> Also, I see LightSpeed is claiming to be faster than either of them, >> what''s your >> experience? >> >> Thanks, >> Warren Seltzer >> >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> ==================DISCLAIMER===============================>> This email may contain confidential and privileged material for >> the sole use of the intended recipient. >> Any review or distribution by others is strictly prohibited. If >> you are not the intended recipient, please contact the sender and >> delete all copies of it from your system. >> The sender accepts no responsibility for viruses and it is your >> responsibility to scan attachments (if any). >> No contracts may be concluded on behalf of the sender by means of >> email communications unless expressly stated to the contrary. >> ==================DISCLAIMER===============================>> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >