map's documentation
<http://nginx.org/en/docs/http/ngx_http_map_module.html#map> states:
A regular expression can contain named and positional captures that can
later be used in other directives along with the resulting variable.
Trying to do the following failed validation:
map $host $foo {
"~*^www\.(.*)$" $1; # Positional capture fails
default $foo;
}
What am I doing wrong?
---
*B. R.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx