Welcome! Log In Create A New Profile

Advanced

Re: Nginx Map Module Help

Maxim Dounin
March 19, 2009 03:34PM
Hello!

On Thu, Mar 19, 2009 at 01:18:41PM -0500, Resi Cow wrote:

> Hello,
>
> I am looking at using Nginx and specifically the Map Module.
>
> http://wiki.nginx.org/NginxHttpMapModule
>
> 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:
>
> include — the maps will be included from a file, or even from multiple files
> when using wildcards.
>
> 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.
>
> 1) So can the values actually be pulled from a file instead?
> 2) What type of file, what format?
> 3) If the map file is updated, does Nginx need to be restarted for the
> changes to take effect?
>
> I apologize if these questions have already been answered somewhere, I
> searched and searched and only found that single reference to the "include"
> support in the Map Module.

http://wiki.nginx.org/NginxHttpMainModule#include

It's just include of configuration chunk. If it's updated - it's
effectively updated configuration, and you should instruct nginx
to reload configuration as usual via SIGHUP.

Maxim Dounin
Subject Author Posted

Nginx Map Module Help

Resi Cow March 19, 2009 02:38PM

Re: Nginx Map Module Help

Maxim Dounin March 19, 2009 03:34PM

Re: Nginx Map Module Help

Merlin March 19, 2009 03:34PM

Re: Nginx Map Module Help

Resi Cow March 20, 2009 06:21PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready