Installing Habari on Lighttpd
Just a small post about Habari installation over Lighttpd, since it is not really documented anywhere that I could find.
I will assume that you know how to run php scripts on your server, and start from there. So once you have unpacked Habari files in say /home/seld/domain.com/, all you need to do is add the following to your lighttpd.conf file :
$HTTP["host"] =~ "^(www\.)?domain\.com$" {
server.document-root = "/home/seld/domain.com"
url.rewrite-once = (
"^/(?!scripts/|3rdparty/|system/|doc/)(.*)$" => "/index.php"
)
}
With this setup, your blog must lie in the top level directory ( http://domain.com/ ), should you want to install it in a subdirectory, you need to add it to the url rewrite, for example to install in http://domain.com/blog/ you would need to replace line 4 with :
"^/blog/(?!scripts/|3rdparty/|system/|doc/)(.*)$" => "/blog/index.php"
August 02, 2008 // Web
Post a comment:
Formatting: you may use [code php] [/code] (or other languages) for code blocks, links are automatically linked. <strong>, <em> and <blockquote> html tags are allowed without nesting, the rest will be escaped.

