Welcome! Log In Create A New Profile

Advanced

Re: Map using regular expresion limited to {2} chars

September 14, 2012 07:00AM
On Friday 14 September 2012 13:21:06 Frank Ruske wrote:
[...]
> But when i try it this way:
>
> map $uri $myclient {
> default noclient;
> ~/(?<suffix>[a-z]{2})/ $suffix;
> }
>
> i get the following error:
> nginx: [emerg] invalid number of the map parameters www.vm:17
>
[...]
>
> Any ideas? Thank you!
>

If a regular expression includes the characters “}” or “;”, the whole
expressions should be enclosed in single or double quotes.

wbr, Valentin V. Bartenev

--
http://nginx.org/en/donation.html
http://nginx.com/support.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

more_set_headers with content-type "text/html" does not send header

hexa September 14, 2012 04:58AM

Map using regular expresion limited to {2} chars

Frank Ruske September 14, 2012 05:26AM

Re: Map using regular expresion limited to {2} chars

VBart September 14, 2012 07:00AM

AW: Map using regular expresion limited to {2} chars

Frank Ruske September 15, 2012 10:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 230
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready