Personal.X-Istence.com

Bert JW Regeer (畢傑龍)

mod_magnet for Lighttpd

So today I found out that I had accidently broken my blog by trying to nest a url.rewrite-once in a $HTTP["URL"] statement in my Lighttpd config. Which meant that my rules for rewriting Drupal nice URL's were not being executed, as apparently you can't nest them like that. Took me a bit to track it down, but once I did I found a link to nordisch by nature which included a new mod_magnet script which did the same thing the rewrite rules but better.

Looking at mod_magnet now, I think I like it better than the Apache .htaccess stuff, as it is just like a programming language so it is extremely powerful. The thing that kind of scares me is that it runs within the server's core, not as a seperate module, then again, PHP runs as a module within the core of Apache when it is known as mod_php. (Lighttpd does not have mod_php support, but does do FastCGI properly, unlike Apache).

More about mod_magnet as I come across other neat tricks. Maybe I will finally get my "About me" website back up and running, as Lighttpd does not do SSI includes like Apache did (no nesting. Understandably, but still ...)