From 84a1cc9c5f1b0d744507a7fbdeec883c463581d5 Mon Sep 17 00:00:00 2001 From: Adam Lamar Date: Fri, 5 Dec 2014 16:57:44 -0700 Subject: [PATCH] Additional detail to setting http_ vars from lua --- doc/HttpLuaModule.wiki | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/HttpLuaModule.wiki b/doc/HttpLuaModule.wiki index 57a522961a..89484e7f86 100644 --- a/doc/HttpLuaModule.wiki +++ b/doc/HttpLuaModule.wiki @@ -2027,7 +2027,8 @@ For example: That is, nginx variables cannot be created on-the-fly. Some special nginx variables like $args and $limit_rate can be assigned a value, -some are not, like $arg_PARAMETER. +some cannot, like $arg_PARAMETER, and most variables prefixed with http_, even if +they are user-defined. Nginx regex group capturing variables $1, $2, $3, and etc, can be read by this interface as well, by writing ngx.var[1], ngx.var[2], ngx.var[3], and etc.