Add handling of static files for /pub/*

This commit is contained in:
uriel 2009-01-14 00:36:32 +01:00
parent 80b80bfc8d
commit c6ee6093f5

View File

@ -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})