From 9d9bca80233c0187b4d4fc7338b56a75b1824745 Mon Sep 17 00:00:00 2001 From: Uriel Date: Wed, 14 Jan 2009 00:36:32 +0100 Subject: [PATCH] Add handling of static files for /pub/* --- bin/werc.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/werc.rc b/bin/werc.rc index 4594642..4eb0d63 100755 --- 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})