Hello,
I want to get status response in all request and my nginx config such as
....
# Lua Module
lua_package_path "/etc/nginx/conf.d/?.lua;;";
server {
listen 80;
server_name localhost;
root /etc/nginx/html;
# Lua Script
lua_code_cache off;
access_by_lua_file /etc/nginx/conf.d/ip.lua;
location / {
default_type 'text/plain';
}
}
...
ip.lua:
local client_status = ngx.status
I want to get values of
ngx.status, but values of ngx.status always is 0.
Can you help me this case!
Thank you!