Regular expression length syntax not working?
jakewow
nginx-forum at forum.nginx.org
Wed Jan 3 12:32:49 UTC 2018
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:7777;
}
Should look like this in order to work:
location ~ "^/event/[0-9,A-Z]{16}/info$" {
proxy_pass http://localhost:7777;
}
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,255413,277974#msg-277974
More information about the nginx
mailing list