Multipule Map modules
token
nginx-forum at nginx.us
Mon Nov 7 20:54:24 UTC 2011
What i would like to do is like Apache is to use multiple map files and
get the vars form them
i have tried the following and can only get one value `$variable1`
what is a rewrite to get `$variable1` and `$variable2` in one rewrite
rewrite ^(^\/*)/(.*)$ /index.php?key1=$variable1&key2=$variable2 last;
map $uri $variable1 {
default 11;
/sub 7;
}
map $uri $variable2 {
default 78;
/pep 23;
}
Regards, David
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,217936,217936#msg-217936
More information about the nginx
mailing list