Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Using $status in location

$
0
0
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.

BR

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>