Sorry for wrong question. I wanted to ask...
map "~ ^/~([^/]*)/.*$)" $userhome{
}
style regex. Where map input string will be $1.
===
Apart from that, inside map:
map $uri $blogname{
~^(?P<blogpath>/[^/]+/)files/(.*)$ $blogpath ;
}
I am not able to use $1. I always have to use a variable like $blogpath. Is it by design or a mistake on my end?
I get error: "nginx: [emerg] unknown "1" variable" when I try:
map $uri $blogname{
~^(/[^/]+/)files/(.*)$ $1 ;
}
--
Rahul Bansal
EasyEngine - https://github.com/rtCamp/easyengine