Answer the question
In order to leave comments, you need to log in
Variable variable name in NGINX?
Suppose there is such a config
location /test {
set $var_test1 value1;
set $var_test2 value2;
set $index 1;
echo $var_test$index; # ??? так не работает, надо чтоб вывело value1, тоесть значение переменной с индексом 1
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question