I am trying to map a variable inside the http directive in Nginx.
When you are alone, only one variable expands; if I add anything else to the string, the extension stops working.
http {
map $host $foo {
default "This is my host: $host";
}
server {
location / {
echo $foo;
}
}
}
Do you have any suggestions for expanding the work inside the map?
source
share