In nginx I can use set to define a variable, but is it possible to define a default?
set
e.g.
set $foo bar if $foo is not defined
map $foo $new_foo { default $foo; '' bar; }
or
if ($foo = '') { set $foo bar; }
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
5 months ago
viewed
282 times
active