[email protected]$ sudo apt-get install lighttpd-mod-magnet [email protected]$ sudo lighty-enable-mod magnet [email protected]$ sudo /etc/init.d/lighttpd force-reloadFor the permalink to work I did the following. Add this piece of code to /etc/lighttpd/lighttpd.conf
$HTTP["host"] == "dev.sudhaker.com" { server.document-root = "/sites/sudhaker.com/htdocs" magnet.attract-physical-path-to = ( server.document-root + "/rewrite.lua" ) }And then
attr = lighty.stat(lighty.env["physical.path"]) if (not attr) then lighty.env["uri.path"] = "/index.php" lighty.env["physical.rel-path"] = lighty.env["uri.path"] lighty.env["physical.path"] = lighty.env["physical.doc-root"] .. lighty.env["physical.rel-path"] endto the rewrite.lua under the server document root directory and it should be up and running.