shithub: werc

Download patch

ref: 123b4552b05964e0e0fc01c1e2229b543d1c4965
parent: e243c0bc01650e2fa40124b3054883c1193cb365
author: uriel <[email protected]>
date: Tue Jan 13 19:36:32 EST 2009

Add handling of static files for /pub/*

--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -116,6 +116,8 @@
     # 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})