<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.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>lighty's life: lighttpd.net runs on 1.5.0</title>
    <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>lighttpd.net runs on 1.5.0</title>
      <description>&lt;p&gt;All the lighttpd.net domains (blog, trac, www, xcache, upload, ...) are now running lighttpd 1.5.0-trunk. It took some debugging to sort out problems with the way trac wants to handle &lt;span class="caps"&gt;PATH&lt;/span&gt;_INFO &lt;a href="http://trac.lighttpd.net/trac/changeset/1841"&gt;[1841]&lt;/a&gt; 
and how ruby handles fastcgi-keepalive requests via Unix-Sockets &lt;a href="http://trac.lighttpd.net/trac/changeset/1850"&gt;[1850]&lt;/a&gt; &lt;a href="http://trac.lighttpd.net/trac/changeset/1849"&gt;[1849]&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;In case you see that one of the sites is down, ping me (weigon) on &lt;span class="caps"&gt;IRC&lt;/span&gt; (irc.freenode.net). The server is running in valgrind and should provide enough information to fix the problem.&lt;/p&gt;
&lt;h3&gt;compression&lt;/h3&gt;

	&lt;p&gt;All the content is sent as compressed content if the client supports it. As some browsers have problems with compressed javascript and &lt;span class="caps"&gt;CSS&lt;/span&gt; we only enabled it for Firefox for now.&lt;/p&gt;


&lt;pre&gt;
deflate.mimetypes = ( "text/html" )

$HTTP["useragent"] =~ "Firefox" {
  deflate.mimetypes += ( "text/javascript", "text/css" )
}
&lt;/pre&gt;

&lt;h3&gt;trac&lt;/h3&gt;

	&lt;p&gt;For the trac I use:&lt;/p&gt;


&lt;pre&gt;
$HTTP["host"] =~ "^trac\.lighttpd\.net" {
    # alias, ...

    $HTTP["url"] =~ "^/trac/" {
        proxy-core.backends = ( "127.0.0.1:9090" )
        proxy-core.protocol = "fastcgi" 
        proxy-core.rewrite-request = (
           "_pathinfo" =&amp;gt; ( "^/trac(/.*)" =&amp;gt; "$1" ),
           "_scriptname" =&amp;gt; ( "^(/trac/)" =&amp;gt; "$1" )
        )
    }
}
&lt;/pre&gt;

	&lt;p&gt;the rewrites tune the &lt;span class="caps"&gt;PATH&lt;/span&gt;_INFO and &lt;span class="caps"&gt;SCRIPT&lt;/span&gt;_NAME settings to the needs of trac. It should also handle the old bug around trac without a prefix.&lt;/p&gt;


&lt;h3&gt;rails + fastcgi&lt;/h3&gt;

	&lt;p&gt;Thanks to the rails apps we run on blog.lighttpd.net and www.lighttpd.net I could trace down some nasty bugs. One is still open and is around the fastcgi keepalive + fcgi.rb. It isn&amp;#8217;t tracked down yet, not enabling it seems to be safe for now.&lt;/p&gt;


	&lt;p&gt;For &lt;a href="http://mephistoblog.com/"&gt;mephisto&lt;/a&gt; we are using the &lt;a href="http://pixel.global-banlist.de/"&gt;cleanurl.lua&lt;/a&gt; to get rid of the &lt;em&gt;server.error-handler-404&lt;/em&gt;.&lt;/p&gt;</description>
      <pubDate>Wed, 09 May 2007 10:24:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:9d50462e-f350-44f4-8322-282579850381</guid>
      <author>jan</author>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0</link>
      <category>lighttpd</category>
      <category>1.5.0</category>
      <trackback:ping>http://blog.lighttpd.net/articles/trackback/4250</trackback:ping>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by Mazdak Rezvani</title>
      <description>Just looked at the requests and looks like that's exactly what's happening: Lighttpd is serving the files that are on disk, and everything else proxies over! Interesting!</description>
      <pubDate>Sun, 13 May 2007 15:24:14 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:36c0ea10-f220-43ca-b78d-5ade8696d14c</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4360</link>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by Mazdak Rezvani</title>
      <description>Hi Jan,

I am using 1.5-trunk. My big problem is that I want lighty to serve the static content while mongrel handles all the rails stuff. Any help would be appreciated.</description>
      <pubDate>Sat, 12 May 2007 20:32:32 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:8ee6c670-7285-4598-b559-ac8a02226da9</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4344</link>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by Jan Kneschke</title>
      <description>the script works for all backends. See lighttpd-1.5.0 for better mongrel support.</description>
      <pubDate>Sat, 12 May 2007 15:48:44 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:f76f3b3d-12e0-4a28-bbb1-6f7c73b82638</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4338</link>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by Mazdak Rezvani</title>
      <description>Great work. Thanks.

A question about cleanurl.lua. This script works with FastCGI. I'd like to do a similar thing with http proxy. I am running mongrel and using mod_proxy_core's http proxying to balance them. I'd like lighty to serve the files if they exist, otherwise continue on forwarding the request to mongrel.

What's the best way to accomplish this?</description>
      <pubDate>Sat, 12 May 2007 14:57:40 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:7c6b0283-5699-4f57-951d-1c32d970a173</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4330</link>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by nmcsween</title>
      <description>@Johan Bergström
One thing wrong with that though alot of browsers masquerade as MSIE so it might not get to that whole 1% ;).</description>
      <pubDate>Thu, 10 May 2007 08:18:16 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:46028198-0688-4788-898e-d00c9c4369f2</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4282</link>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by Jan Kneschke</title>
      <description>keeping the process alive is one problem, browser compat problems the other one. Looks like we only have problems left with trac + fastcgi + keepalive. The current code looks good enough for another pre-release.</description>
      <pubDate>Thu, 10 May 2007 06:29:17 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:693ccc16-a1b3-4724-b899-987f763aa800</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4278</link>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by Johan Bergström</title>
      <description>Just a thought;  Since most browsers happily accept gzipped js/css, one could set us up with somethink like:
&lt;pre&gt;
deflate.mimetypes = ( "text/html","text/javascript", "text/css" )

$HTTP["useragent"] =~ "MSIE" {
  deflate.mimetypes = ( "text/html" )
}
&lt;/pre&gt;</description>
      <pubDate>Wed, 09 May 2007 16:15:06 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:e83e17b5-1d8b-4bc0-aa22-89beccf77631</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4262</link>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by darix</title>
      <description>i run 1.5 on &lt;a href="http://pixel.global-banlist.de" rel="nofollow"&gt;http://pixel.global-banlist.de&lt;/a&gt;./ aswell.

but i prefer runit (&lt;a href="http://smarden.sunsite.dk/runit" rel="nofollow"&gt;http://smarden.sunsite.dk/runit&lt;/a&gt;) for the house keeping. an article about my rails + lighttpd setup will follow.</description>
      <pubDate>Wed, 09 May 2007 16:05:55 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:a64c70a1-110e-4106-8805-bb9f0e8cda7a</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4260</link>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by Dan</title>
      <description>Great to hear!

You should look into setting up monit to monitor LightTPD for crashes.  It'll email you when there's a problem, and automatically attempt to restart lightty.  Its much more reliable than relying on others to ping you on IRC when a site goes down ;)</description>
      <pubDate>Wed, 09 May 2007 15:59:46 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:096d9816-be6b-4468-a889-ccec3f645e02</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4259</link>
    </item>
    <item>
      <title>"lighttpd.net runs on 1.5.0" by Bert JW Regeer</title>
      <description>Safari is able to handle compressed CSS/JavaScript as well, I have compression enabled on my site and Safari handles it without a problem!</description>
      <pubDate>Wed, 09 May 2007 15:46:41 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:db7d3b67-37ae-4baa-9d41-27ad6607f7e4</guid>
      <link>http://blog.lighttpd.net/articles/2007/05/09/lighttpd-net-runs-on-1-5-0#comment-4258</link>
    </item>
  </channel>
</rss>
