<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Robby on Rails: Tag lighttpd</title>
    <link>http://www.robbyonrails.com/articles/tag/lighttpd</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>thoughts.sort_by{|t| t[:topic]}.collect </description>
    <item>
      <title>FeedBurner and lighttpd redirects</title>
      <description>&lt;p&gt;I haven&amp;#8217;t been using feedburner to track counts of subscribers to my feed. I didn&amp;#8217;t want to tell everyone to switch their feed &lt;span class="caps"&gt;URL&lt;/span&gt;&amp;#8230; so I found this solution for handling this transition through Lighttpd.&lt;/p&gt;


	&lt;p&gt;First, make sure you are requiring the &lt;code&gt;mod_redirect&lt;/code&gt; module.&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;server.modules              = ( "mod_rewrite", "mod_fastcgi", "mod_compress", "mod_redirect" )&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Then add the following&amp;#8230; to your lighty configuration.&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
$HTTP["useragent"] !~ "FeedBurner" {
  url.redirect = (
    "/xml/rss/feed.xml" =&amp;gt; "http://feeds.feedburner.com/RobbyOnRails",  
    "/xml/rss20/feed.xml" =&amp;gt; "http://feeds.feedburner.com/RobbyOnRails",
    "/xml/atom/feed.xml" =&amp;gt; "http://feeds.feedburner.com/RobbyOnRails" 
  )
}
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Works like a charm!&lt;/p&gt;


	&lt;p&gt;Thanks to &lt;a href="http://www.iamrice.org"&gt;Damien Tanner&lt;/a&gt; for putting me on &lt;a href="http://iamrice.org/articles/2006/03/30/migrating-typo-feeds-to-feedburner"&gt;the right path&lt;/a&gt;.&lt;/p&gt;
</description>
      <pubDate>Tue, 22 Aug 2006 15:28:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:b9f0c8a5-f9de-41d0-ab66-23f104cb6415</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2006/08/22/feedburner-and-lighttpd-redirects</link>
      <category>lighttpd</category>
      <category>feedburner</category>
      <category>typo</category>
      <category>blog</category>
    </item>
    <item>
      <title>Rails on SCGI and Lighttpd</title>
      <description>&lt;p&gt;Just recently, we began testing out &lt;a href="http://www.zedshaw.com/projects/scgi_rails/index.html"&gt;&lt;span class="caps"&gt;SCGI&lt;/span&gt;&lt;/a&gt; with Lighttpd. We were running into weird problems with &lt;span class="caps"&gt;FCGI&lt;/span&gt; and both Apache and Lighttpd&amp;#8230; things like fcgi processes that would get spawned and just hang around after the apache or lighttpd processes were killed. We have a few cron scripts that try to play cleanup&amp;#8230; but that isn&amp;#8217;t a long-term solution.&lt;/p&gt;


	&lt;p&gt;So, we took the plunge on a few client projects for their demos and I am happy to report that it took maybe 15 minutes to read &lt;a href="http://www.zedshaw.com/projects/scgi_rails/lighttpd.html"&gt;the documentation&lt;/a&gt; and get things going.&lt;/p&gt;


	&lt;p&gt;I have a new friend and &lt;code&gt;scgi_ctrl&lt;/code&gt; is it&amp;#8217;s name.&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s only a matter of time before we work on an rbot plugin so that we can reload our applications via &lt;span class="caps"&gt;IRC&lt;/span&gt;. :-)&lt;/p&gt;
</description>
      <pubDate>Sun, 26 Feb 2006 09:23:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:23e59abf-d40e-4ccb-b6e9-483e5e03897e</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2006/02/26/rails-on-scgi-and-lighttpd</link>
      <category>scgi</category>
      <category>lighttpd</category>
      <category>rails</category>
    </item>
    <item>
      <title>Lighttpd, crontab, and server reboots</title>
      <description>&lt;p&gt;I&amp;#8217;ll be the first to admit that server reboots do happen. Whether they are for planned hardware upgrades or the unexpected runaway &lt;span class="caps"&gt;CPU&lt;/span&gt; processes&amp;#8230;they can cause some problems for your applications.&lt;/p&gt;


	&lt;p&gt;Recently, we had an unexpected outage on one of our servers and noticed that some of the lighttpd instances were not restarted automatically. I personally went and started up each one manuually and documented who they all were. We wanted to build a nice solution to this&amp;#8230; but because every user has their own method of invoking lighttpd and we kind of let you run free with that&amp;#8230; the idea to build one init script to meet everyones needs&amp;#8230; isn&amp;#8217;t currently practical. We want you to have some freedom with that and we can help you along the way. :-)&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;So&amp;#8230; what should you do?&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Well, &lt;a href="http://david.planetargon.us"&gt;David Gibbons&lt;/a&gt; (our &lt;a href="http://www.robbyonrails.com/articles/2005/12/05/another-brick-in-the-wall"&gt;new Lead Systems Administrator&lt;/a&gt;) has a nice tip on his blog, &lt;a href="http://david.planetargon.us/articles/2005/12/09/a-cool-trick-with-cron"&gt;a cool trick with cron&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;He shows you how to use the &lt;code&gt;@reboot&lt;/code&gt; option in crontab for scheduling scripts to startup on a reboot.&lt;/p&gt;


	&lt;p&gt;This is great to use and should work if you are a hosting customer at &lt;a href="http://www.planetargon.com"&gt;&lt;span class="caps"&gt;PLANET ARGON&lt;/span&gt;&lt;/a&gt;. Expect more little tricks like this in the future as David has many up his sleeve. You might want to subscribe to his brand new &lt;a href="http://typo.leetsoft.com"&gt;Typo&lt;/a&gt; blog &lt;a href="http://david.planetargon.us/xml/rss20/feed.xml"&gt;&lt;span class="caps"&gt;RSS&lt;/span&gt; feed&lt;/a&gt;.
 ;-)&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="keyword"&gt;class &lt;/span&gt;&lt;span class="class"&gt;David&lt;/span&gt; &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt; &lt;span class="constant"&gt;ActiveRecord&lt;/span&gt;&lt;span class="punct"&gt;::&lt;/span&gt;&lt;span class="constant"&gt;Base&lt;/span&gt;
  &lt;span class="ident"&gt;has_many&lt;/span&gt; &lt;span class="symbol"&gt;:tricks&lt;/span&gt;
&lt;span class="keyword"&gt;end&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Have a great weekend!&lt;/p&gt;
</description>
      <pubDate>Fri, 09 Dec 2005 19:41:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:059c659631309d8b554df2d069131a7d</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2005/12/09/lighttpd-crontab-and-server-reboots</link>
      <category>crontab</category>
      <category>lighttpd</category>
      <category>hosting</category>
    </item>
  </channel>
</rss>
