Welcome! Log In Create A New Profile

Advanced

Re: ngx_module_order directive

Maxim Dounin
June 10, 2019 08:56AM
Hello!

On Sat, Jun 08, 2019 at 12:44:29AM +0000, Carey Gister wrote:

> I'm writing a new module and I want to place in a specific order in the module list as defined in ngx_modules.c.
>
> If my module name is x_module and I want it to run after ngx_http_slice_filter_module I tried:
>
> ngx_module_order=x_module ngx_http_slice_filter_module
>
> and I am informed during configuration that 'ngx_http_slice_filter_module does not exist.
>
> What is the correct syntax for this directive?

The config file is a shell script, and expected to follow POSIX
shell syntax. That is, to define a variable with a space in it
you have to use double quotes:

ngx_module_order="x_module ngx_http_slice_filter_module"

Note well that it is generally a bad idea to explicitly define
module order unless you know what are you doing and why.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

ngx_module_order directive

careygister 466 June 07, 2019 08:46PM

Re: ngx_module_order directive

Maxim Dounin 158 June 10, 2019 08:56AM

Re: ngx_module_order directive

careygister 173 June 11, 2019 01:58PM

Re: ngx_module_order directive

Maxim Dounin 196 June 12, 2019 10:44AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 285
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