Welcome! Log In Create A New Profile

Advanced

Re: Nginx Map Module Help

Resi Cow
March 20, 2009 06:21PM
<6df1d0930903191118l2974c696g2b981ec5bd01cb23@mail.gmail.com> <2dcdbfcc0903191214r1040b28r23745a77e0287629@mail.gmail.com>

Okay thanks, I wasn't sure.

I am no expert, but I looked at the nginx source and I saw this in the map
module code:

return ngx_conf_parse(cf, &file);

and some other references to a file.

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?

Thanks,

John


On Thu, Mar 19, 2009 at 2:14 PM, Merlin <merlin@mahalo.com> wrote:

> I think it simply references the include support in nginx core:
> http://wiki.nginx.org/NginxHttpMainModule#include
>
> It means you can have files that contain the map directives and use include
> to include them into your configuration as needed.
>
> - Merlin
>
>
> On Thu, Mar 19, 2009 at 11:18 AM, Resi Cow <resicow@gmail.com> 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
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: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready