question about the context of map directive

杨镭 clanherb at gmail.com
Wed May 4 22:59:21 MSD 2011


Hi,

The context of map directive is *http* as documented on wiki.nginx.org. This
means all the requests will go through the map filter phase.
This is not ideal when you have many virtual hosts.

For example, we've 50+ virtual hosts. When one of them need map variables,
the others automatically inherited those settings because there is no way to
limit it to server context.

If this is the situation, can someone know the internals of nginx explain
why the map module can't work at server level.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110505/b46aa5fb/attachment.html>


More information about the nginx mailing list