On Mon, Nov 3, 2014 at 3:22 PM, Igor Sysoev <igor@sysoev.ru> wrote:
> Using named captures works (as demonstrated by
> https://stackoverflow.com/questions/12459518/nginx-extract-a-value-from-a-variable-or-any-string),
> though:
> map $host $foo {
> "~*^www\.(?<domain>.*)$" $domain; # Named capture wins
> default $foo;
> }
>
>
> default $host;
>
> Yup, my bad: typo while writing the example map.
It does not interfere much with the problem though. Any piece of advice? :o)
---
*B. R.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx