Feb 092010
How to define variable in nginx
Answer:
nginx provided a very simple way to define custom variable, which can provide a very flexible way to control your web server.
E.g.
set $foo bar;
if ($foo ~ bar) {
# do something
}
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to define variable in nginx
Answer:
nginx provided a very simple way to define custom variable, which can provide a very flexible way to control your web server.
E.g.
set $foo bar;
if ($foo ~ bar) {
# do something
}