Re: Regular expression length syntax not working?

2018-01-03 Thread jakewow
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-

Re: Regular expression length syntax not working?

2014-12-11 Thread hyperion
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.

Re: Regular expression length syntax not working?

2014-12-11 Thread Francis Daly
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/

Regular expression length syntax not working?

2014-12-10 Thread hyperion
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