Variables in Nginx
- The set directive can be used to declare new variables anywhere within the configuration file.
set $<variable_name> <variable_value>;
# set name "Farhan"
# set age 25
# set is_working true
- Variables can be of three types: String, Integer and Boolean.