changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Fix handling of static /pub/ files.

changeset 321: 66692fc7f8b1
parent 320: 1c392f7c696d
child 322: 3a671df6a55c
author: uriel@engel.se.cat-v.org
date: Fri, 16 Jan 2009 01:08:54 +0100
files: bin/werc.rc
description: Fix handling of static /pub/ files.
     1.1--- a/bin/werc.rc	Wed Jan 14 00:36:32 2009 +0100
     1.2+++ b/bin/werc.rc	Fri Jan 16 01:08:54 2009 +0100
     1.3@@ -116,8 +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+    if not if(~ $req_path /pub/* && test -f .$req_path)
    1.10+        static_file .$req_path
    1.11     # File not found
    1.12     if not {
    1.13         handler_body_main=(tpl_handler `{get_lib_file 404.tpl})