Actions
Blosxom Configuration for Lighttpd¶
This is a virtual host setting in lighttpd.conf on FreeBSD which works with a clean URL:
index-file.names = ( "blosxom.cgi", "index.shtml", "index.html", "index.htm", "default.htm") $HTTP["host"] =~ "(^|\.)galj\.info$" { server.document-root = "/usr/blosxom/galj" url.rewrite = ( #"^/([a-zA-Z_0-9\-]+)(\.jpg)$" => "$1.jpg", "^/([0-9]+)/?$" => "/blosxom.cgi/$1", "^/([0-9]+)/?([0-9]+)/?$" => "/blosxom.cgi/$1/$2", "^/([0-9]+)/([0-9]+)/([0-9]+)/?$" => "/blosxom.cgi/$1/$2/$3", "^/index.atom" => "/blosxom.cgi/index.atom", "^/index.rss" => "/blosxom.cgi/index.rss" ) server.error-handler-404 = "/blosxom.cgi" }
This does not incorporate a clean solution for /images/ within Blosxom. The remedy is to use the full path to images in the entries.
There are other problems that may depend on -- but are not necessarily caused by -- the plugins used with Blosxom. It works well with a configuration that uses some 20 generally available and home-brew plugins. To catch errors, the 404 error handler directs back to the plain blosxom.cgi which is better than nothing for the visitor.
Caveat: Obviously done by regexp non-expert !
Updated by gstrauss almost 3 years ago · 7 revisions