Hi i would like to execute some lua code (very simple script) only on status code 200 But the internal value of nginx $status variable is always 000 location / { root /usr/local/nginx-streaming/html; set $bar $status; add_header X-Whomx $bar; } Does anyone know how to get correct status code. BRby nixon1974 - How to...
Is there a way to jump to different locations depending on $upstream_cache_status? I tried something like set $skip_cache 0; if ($upstream_cache_status = HIT) { set $skip_cache 0; } if ($upstream_cache_status != HIT) { set $skip_cache 1; } But $upstream_cache_status returns empty value. content_by_lua also retuby nixon1974 - How to...