For those who are looking for the answer:
> A regular expression containing the characters “{” and “}” should be
quoted.
So, his location directive:
location ~ ^/event/[0-9,A-Z]{16}/info$ {
proxy_pass http://localhost:;
}
Should look like this in order to work:
location ~ "^/event/[0-
HI Francis
The link to the doc was exactly what I was looking for.
The regex works as expected now.
Thanks
Mik
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,255413,255442#msg-255442
___
nginx mailing list
nginx@nginx.org
http://mailman.
On Wed, Dec 10, 2014 at 09:51:11PM -0500, hyperion wrote:
Hi there,
> location ~ ^/event/[0-9,A-Z]{16}/info$ {
> proxy_pass http://localhost:;
> }
> I don't get a match.
[root@monolith1 nginx]# sbin/nginx -t
nginx: [emerg] unknown directive "16}/info$" in
/usr/
Hi
This is my second post. :-)
I have a regular expression in my location directive to match on a URL.
When I use:
http {
...
location ~ ^/event/[0-9,A-Z]{16}/info$ {
proxy_pass http://localhost:;
}
}
}
I don't get a match.
I have to manually repeat t