my nginx-V information is as follows:
nginx -V
nginx version: nginx/1.14.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
configure arguments: --prefix=/usr/local/nginx --add-module=/usr/local/src/lua-nginx-module-0.10.13 --add-module=/usr/local/src/ngx_devel_kit-0.3.0
my nginx vhost configuration file is as follows:
server{
listen 80;
server_name t1.xxx.com;
location / {
root /t1/html;
index index.html index.htm;
}
location /test_lua {
default_type "text/plain";
content_by_lua "ngx.say("hello, lua")";
}
-sharp
location ~* ^((\/manager)(\/\w+)(.+\.(jpg|jpeg|gif|png))_(\d+)+x(\d+)+\.(jpg|jpeg|gif|png))$ {
set $para1 $1;
set $para2 $2;
set $para3 $3;
set $para4 $4;
set $para5 $5;
set $para6 $6;
set $para7 $7;
set $para8 $8;
set $para9 $9;
default_type "text/plain";
content_by_lua_block {
ngx.say(ngx.var.para1)
ngx.say(ngx.var.para2)
ngx.say(ngx.var.para3)
ngx.say(ngx.var.para4)
ngx.say(ngx.var.para5)
ngx.say(ngx.var.para6)
ngx.say(ngx.var.para7)
ngx.say(ngx.var.para8)
ngx.say(ngx.var.para9)
}
}
error_log /usr/local/nginx/logs/error_t1.log error;
access_log off;
}
ask the master to answer! Thank you!