a newbie question regarding regex in nginx conf
zhang.yining at gmail.com
Wed Sep 3 19:33:15 MSD 2008
I have a question regarding regex in nginx conf, and believe it must
have been brought up before, yet after googling for it, I could not find
Specifically, is it possible to use curly braces in nginx conf?
For example, for some url like: /photos/123456
I would want to rewrite it to: /path/to/photos/12/1234/123456.png
in apache's conf rewrite rule, I could use something like:
But it seems curly braces are reserved for nginx conf file's own use,
and not recognized by the regex processing.
So is there any way to use curly braces in regex? If so, could some one
kind enough to provide a link or short explanation of how to do it?
Thanks in advance,
mailto: zhang.yining at gmail.com
Fingerprint: 25C8 47AE 30D5 4C0D A4BB 8CF2 3C2D 585F A905 F033
More information about the nginx