swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit b12621d6fd726cec1acf05e60e8963c1409e8637
parent a6d3fb6efa5519ca7dac4a954da83c1eb89f8c61
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Wed, 14 Jan 2009 00:36:32 +0100

Add handling of static files for /pub/*
Diffstat:
Mbin/werc.rc | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/bin/werc.rc b/bin/werc.rc @@ -116,6 +116,8 @@ fn setup_handlers { # Fallback static file handler if not if(test -f $local_path) static_file $local_path + if not if(test -f pub/$req_path) + static_file pub/$req_path # File not found if not { handler_body_main=(tpl_handler `{get_lib_file 404.tpl})