Hi,<div><br></div><div>The context of map directive is <i>http</i> as documented on <a href="http://wiki.nginx.org">wiki.nginx.org</a>. This means all the requests will go through the map filter phase.</div><div>This is not ideal when you have many virtual hosts.</div>
<div><br></div><div>For example, we&#39;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.</div><div><br></div>
<div>If this is the situation, can someone know the internals of nginx explain why the map module can&#39;t work at server level.</div><div>Thanks.</div>