I'm trying to control buffering with variables, but nginx complains about it,

nginx: [emerg] invalid value "$val" in "proxy_request_buffering" directive, it 
must be "on" or "off" in /etc/nginx/sites-enabled/test.conf:9

Is there any way to resolve this? Attached the configuration in question.

server {
listen 8888;
set $val on;

if ($request_uri ~* "enable") {
set $val off;
}

proxy_request_buffering $val;
proxy_buffering $val;

location / {
proxy_pass http://127.0.0.1:3333;
}}
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to