The root cause there are both. var_values & value_hashs. when used with regex key, we should not use var_values, because numbered capture are not registered as nginx variable. so directive like "~(.+) $1;" will add $1 into var_values by mistake, but latter regex will not add this variable.. ---start of patch--- --- nginx-1.1.19-orig/src/http/modules/ngx_http_map_module.c 2012-01-by kindy - Nginx Development
Yep, it's a bug but not a question. Thanks. > On 2014年12月19日, at 00:11, Maxim Dounin <mdounin@mdounin.ru> wrote: > > Hello! > >> On Thu, Dec 18, 2014 at 11:23:51PM +0800, Kindy Lin wrote: >> >> Hi, >> >> I have some configuration like: >> >> map $host $sub { >> default www; >> ~^(\w+)\.abc\.com$ $1; >> }by kindy - Nginx Development
Hi, I have some configuration like: map $host $sub { default www; ~^(\w+)\.abc\.com$ $1; } And it not works. I first find it in 1.1.19 and seems the latest version still have this issue. Thanks. _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-develby kindy - Nginx Development
Hi, Currently nginx support only string in double quote and single quote, how about add support for long string just like lua do ( http://www.lua.org/manual/5.1/manual.html#2.1 ). then we can put everything we like in config file. Also, we can support the long comment. and then we can comment block of configure temperately. Append the long string description here: Strings can also be definedby kindy - Nginx Development
hi, got it. and when will this be fixed? On Thu, Apr 26, 2012 at 8:35 PM, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Thu, Apr 26, 2012 at 10:11:48AM +0800, kindy wrote: > > > hi, > > > > from nginx 1.1.13 to 1.2.0. > > the conf: > > > > upstream a { > > server 127.0.0.1:8083; > > keepalive 10 single; > &by kindy - Nginx Development
hi, from nginx 1.1.13 to 1.2.0. the conf: upstream a { server 127.0.0.1:8083; keepalive 10 single; } server { listen 8083; keepalive_timeout 10; location = /a { } location = /b { proxy_http_version 1.1; proxy_set_header Connection keep-alive; add_header upname "abc[$upstream_addr]dd"; proxy_pass http://a/a; } } - -by kindy - Nginx Development
location = /t-get-lua-mem-use { content_by_lua ' ngx.say("lua use " .. collectgarbage("count") .. "KB") '; } maybe you can use this to got how many memory used by lua. and then find out what the problem is. On Fri, Feb 11, 2011 at 6:41 AM, Roman Vasilyev <roman@anchorfree.com> wrote: > On 02/10/2011 02:38 PM,by kindy - Nginx Mailing List - English
server { listen 8082; server_name localhost; location = /a-help2 { content_by_lua 'ngx.say(ngx.time())'; } location = /a-help { proxy_pass http://127.0.0.1:8082/a-help2; } location = /a { echo_location /a-help; echo_sleep 2; echo_location /a-help; } } start a croby kindy - Nginx Mailing List - English