BlosxomRecipe » History » Revision 6
Revision 5 (Anonymous, 2007-09-15 19:35) → Revision 6/7 (Anonymous, 2012-08-11 10:42)
h2. Blosxom Configuration for Lighttpd This is a virtual host setting in lighttpd.conf on FreeBSD which works with a clean URL: <pre> 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" } </pre> 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 !