Add handling of static files for /pub/*
This commit is contained in:
parent
ca4feb95a4
commit
9d9bca8023
1 changed files with 2 additions and 0 deletions
|
|
@ -116,6 +116,8 @@ fn setup_handlers {
|
||||||
# Fallback static file handler
|
# Fallback static file handler
|
||||||
if not if(test -f $local_path)
|
if not if(test -f $local_path)
|
||||||
static_file $local_path
|
static_file $local_path
|
||||||
|
if not if(test -f pub/$req_path)
|
||||||
|
static_file pub/$req_path
|
||||||
# File not found
|
# File not found
|
||||||
if not {
|
if not {
|
||||||
handler_body_main=(tpl_handler `{get_lib_file 404.tpl})
|
handler_body_main=(tpl_handler `{get_lib_file 404.tpl})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue