Project

General

Profile

Actions

BlosxomRecipe » History » Revision 1

Revision 1/7 | Next »
Anonymous, 2007-09-15 19:26


This is a virtual host setting in lighttpd.conf on FreeBSD which works with a clean URL:

{{{
$HTTP["host"] =~ "(|\.)galj\.info$" {
server.document-root = "/usr/html/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: Done by regexp non-expert !

Updated by Anonymous about 17 years ago · 1 revisions