From 6e66e649b1fb4c7c186a958fc03d769fee1daea6 Mon Sep 17 00:00:00 2001 From: Uriel Date: Fri, 16 Jan 2009 01:08:54 +0100 Subject: [PATCH] Fix handling of static /pub/ files. --- bin/werc.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/werc.rc b/bin/werc.rc index 4eb0d63..50a56ae 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -116,8 +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 + if not if(~ $req_path /pub/* && test -f .$req_path) + static_file .$req_path # File not found if not { handler_body_main=(tpl_handler `{get_lib_file 404.tpl})