From dd778713d32ba217de072396c95d84bf6bfb6148 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Wed, 22 Aug 2018 20:02:45 +0200 Subject: [PATCH] add rewrite rule to comment --- apps/router.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/router.lua b/apps/router.lua index 3eeb239..287278f 100644 --- a/apps/router.lua +++ b/apps/router.lua @@ -1,4 +1,7 @@ +-- the rewrite rule for the framework +-- should be something like this +-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>& -- some global variables DIR_SEP = "/" WWW_ROOT = "/opt/www/htdocs/apps"