<?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: A New Power-Magnet</title>
    <link>http://blog.lighttpd.net/articles/2006/09/16/a-new-power-magnet</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>A New Power-Magnet</title>
      <description>&lt;p&gt;In &lt;a href="http://blog.lighttpd.net/articles/2006/08/02/mod_cml-is-dead-long-live-mod_cml"&gt;mod_cml is dead, long live mod_cml&lt;/a&gt; I gave some hints about  &lt;a href="http://trac.lighttpd.net/trac/wiki/Docs:ModCML"&gt;mod_cml&lt;/a&gt; going to die soon. With lighttpd 1.4.12 there will be a new module called &lt;a href="http://trac.lighttpd.net/trac/wiki/Docs:ModMagnet"&gt;mod_magnet&lt;/a&gt;  can &lt;i&gt;attract&lt;/i&gt; every request and decide on its further execution.&lt;/p&gt;


If you want you implement most of our current modules via mod_magnet, e.g.: 
	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://trac.lighttpd.net/trac/wiki/Docs%3AModMagnet#complex-rewrites"&gt;rewrites and redirects&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://trac.lighttpd.net/trac/wiki/Docs%3AModMagnet#denying-illegal-character-sequences-in-the-url"&gt;input validation like mod_security&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://trac.lighttpd.net/trac/wiki/Docs%3AModMagnet#mod-flv-streaming"&gt;flv streaming&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;...&lt;/li&gt;
	&lt;/ul&gt;
&lt;p&gt;Instead of inventing a new language as I did for the first versions of mod_cml we used &lt;a href="http://lua.org/"&gt;lua&lt;/a&gt; again. Lua is a simple, performant, light and extensible language. Pretty much what your lighty is for web-servers.&lt;/p&gt;


	&lt;p&gt;Thanks to the help of the &lt;i&gt;#lua&lt;/i&gt; channel in &lt;a href="http://freenode.net/"&gt;freenode&lt;/a&gt; especially &lt;i&gt;rici&lt;/i&gt; I could implement the basic magnet-engine over the weekend. On &lt;a href="http://p.caboo.se/12501"&gt;http://p.caboo.se/12501&lt;/a&gt; you can see the first version of the code-cache that is giving mod_magnet its performance.&lt;/p&gt;


	&lt;p&gt;While most of the configuration in lighty needs a restart of the server to get activated, mod_magnet reloads its scripts when you change them. The scripts itself are compliled once and executed on each request. Thanks to the architecture of lua it was very easy to implement the this byte-code cache, mOo had to write a while until his &lt;a href="http://xcache.lighttpd.net/"&gt;XCache&lt;/a&gt; worked nicely with php.&lt;/p&gt;


	&lt;p&gt;And now ? Try it out, get the 1.4.12 (or the last pre-release) and tell us how you like it.&lt;/p&gt;</description>
      <pubDate>Sat, 16 Sep 2006 10:56:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:78a54a8f-2bc5-4c03-852d-85e536f9747c</guid>
      <author>jan</author>
      <link>http://blog.lighttpd.net/articles/2006/09/16/a-new-power-magnet</link>
      <category>magnet</category>
      <category>1.4.12</category>
      <trackback:ping>http://blog.lighttpd.net/articles/trackback/1995</trackback:ping>
    </item>
    <item>
      <title>"A New Power-Magnet" by Jan Kneschke</title>
      <description>You can use SIGINT to do a graceful shutdown, see &lt;a href="http://blog.lighttpd.net/articles/2005/09/02/graceful-restart" rel="nofollow"&gt;http://blog.lighttpd.net/articles/2005/09/02/graceful-restart&lt;/a&gt;</description>
      <pubDate>Sun, 17 Sep 2006 11:07:48 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d04c2f08-c93c-4026-ba8e-81e9f165a0ca</guid>
      <link>http://blog.lighttpd.net/articles/2006/09/16/a-new-power-magnet#comment-1998</link>
    </item>
    <item>
      <title>"A New Power-Magnet" by David Bullock</title>
      <description>VERY exciting to hear it reloads the config files on change - any hope of Lighty doing the same thing with it's config files?

I have replaced Apache organization wide with Lighty and the only drawback is changes to the configs of our download servers and I hate restarting the server and killing transfers in progress to pick up the new configuraiton.</description>
      <pubDate>Sat, 16 Sep 2006 21:42:01 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:0501f1bc-a8f7-4559-937d-53042172ff12</guid>
      <link>http://blog.lighttpd.net/articles/2006/09/16/a-new-power-magnet#comment-1996</link>
    </item>
  </channel>
</rss>
