Project

General

Profile

BlosxomRecipe » History » Revision 2

Revision 1 (Anonymous, 2007-09-15 19:26) → Revision 2/7 (Anonymous, 2007-09-15 19:28)

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/blosxom/galj" "/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: Obviously done Done by regexp non-expert !