Okay thanks, I wasn&#39;t sure.<br><br>I am no expert, but I looked at the nginx source and I saw this in the map module code:<br><br>return ngx_conf_parse(cf, &amp;file);<br><br>and some other references to a file.<br><br>

So are you saying that we can use the include command from the main module to include a file defining a map, or does the Map module have its own include functionality?<br><br>Thanks,<br><br>John<br><br><br><div class="gmail_quote">

On Thu, Mar 19, 2009 at 2:14 PM, Merlin <span dir="ltr">&lt;<a href="mailto:merlin@mahalo.com" target="_blank">merlin@mahalo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I think it simply references the include support in nginx core: <a href="http://wiki.nginx.org/NginxHttpMainModule#include" target="_blank">http://wiki.nginx.org/NginxHttpMainModule#include</a><br><br>It means you can have files that contain the map directives and use include to include them into your configuration as needed.<br>

<font color="#888888">
<br>- Merlin</font><div><div></div><div><br><br><div class="gmail_quote">On Thu, Mar 19, 2009 at 11:18 AM, Resi Cow <span dir="ltr">&lt;<a href="mailto:resicow@gmail.com" target="_blank">resicow@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I am looking at using Nginx and specifically the Map Module.<br><br><a href="http://wiki.nginx.org/NginxHttpMapModule" target="_blank">http://wiki.nginx.org/NginxHttpMapModule</a><br><br>I have used the rewrite map stuff in Apache, and I know in Apache you can load a key / value pair list from a text file. I had assumed looking at the examples on the Wiki that the values needed to be included with the configuration, but then I noticed that at the end of the Wiki page on the Nginx Map Module there was this:<br>



<br>include — the maps will be included from a file, or even from multiple files when using wildcards.
<br><br>How does this work? I was hoping someone with some experience can elaborate on this feature, as I was unable to find additional information on this.<br><br>1) So can the values actually be pulled from a file instead?<br>



2) What type of file, what format?<br>3) If the map file is updated, does Nginx need to be restarted for the changes to take effect?<br><br>I apologize if these questions have already been answered somewhere, I searched and searched and only found that single reference to the &quot;include&quot; support in the Map Module.<br>



<br>Thanks,<br><br>John<br><br><br>
</blockquote></div><br>
</div></div></blockquote></div><br>