changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Add handling of static files for /pub/*

changeset 320: 1c392f7c696d
parent 319: 1778dca75833
child 321: 66692fc7f8b1
author: uriel@engel.se.cat-v.org
date: Wed, 14 Jan 2009 00:36:32 +0100
files: bin/werc.rc
description: Add handling of static files for /pub/*
     1.1--- a/bin/werc.rc	Tue Jan 13 03:20:30 2009 +0100
     1.2+++ b/bin/werc.rc	Wed Jan 14 00:36:32 2009 +0100
     1.3@@ -116,6 +116,8 @@
     1.4     # Fallback static file handler
     1.5     if not if(test -f $local_path)
     1.6         static_file $local_path
     1.7+    if not if(test -f pub/$req_path)
     1.8+        static_file pub/$req_path
     1.9     # File not found
    1.10     if not {
    1.11         handler_body_main=(tpl_handler `{get_lib_file 404.tpl})