How to match multiple times in nginx location regex ?
it seems the {x,x} syntax never works!
for example:
location ~ ^/abc/\w{1,3}$ {
...
}
nerver work!
You must quote location which contains {
or ;
characters.
location ~ "^/abc/\w{1,3}$" {
...
}
otherwise nginx parse it as location ~ ^/abc/\w { 1, ...
and fails with syntax error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With