URL rewrite support for Lighttpd server

I was setting up WordPress permalinks with Lighttpd but encounter some problems: mod_magnet module was not available for the Lighttpd installed on my VPS. It turned out that I need to install the module manually and then restart the server: user@server$ sudo apt-get install lighttpd-mod-magnet user@server$ sudo lighty-enable-mod magnet user@server$ …