Welcome! Log In Create A New Profile

Advanced

Re: About the order of execution of the modules.

SP ADD
March 14, 2021 01:44PM
Hi there!

Thanks for your answer!

In my module, ngx_module_type is set to HTTP, so ngx_module_order doesn't apply.

I'm sorry, I'm not sure what "stock module" means, I guess it means a built-in module, i.e. a module that can be enabled or disabled just by the parameters of the "configure" script, without having to download the source code of the module, e.g. ngx_http_flv_module and ngx_http_rewrite_module.

If I am correct, I will list below the questions I would like to ask and hopefully the questions below are clear and unambiguous.

* How to control the order of execution between the dynamic stock module and my dynamic module.
* How to control the order of execution between the dynamic stock module and my static module.
* How to control the order of execution between my dynamic non-stock modules and my dynamic modules.
* How to control the order of execution between dynamic non-stock modules and my static modules.
* How to control the order of execution between static stock modules and my dynamic modules.
* How to control the order of execution between static stock modules and my static modules.

Regarding the last question, have I looked at https://forum.nginx.org/read.php?2,246978,246999#msg-246999 and can the answers there be used to control the order between the static stock modules and my static modules?

ADD-SP
________________________________
发件人: nginx <nginx-bounces@nginx.org> 代表 Francis Daly <francis@daoine.org>
发送时间: 2021年3月14日 23:18
收件人: nginx@nginx.org <nginx@nginx.org>
主题: Re: About the order of execution of the modules.

On Sun, Mar 14, 2021 at 08:55:20AM +0000, ADD SP wrote:

Hi there,

> I am a developer of third-party modules. Assuming that all modules are registered in the same phase (e.g. NGX_HTTP_ACCESS_PHASE) I would like to know the order of execution between dynamic modules. Can I control the order of execution between dynamic modules? What is the order of execution between static and dynamic modules? Can I control the order of execution between static and dynamic modules?
>

Does the "ngx_module_order" content at
http://nginx.org/en/docs/dev/development_guide.html#adding_new_modules
answer your questions?

If not: is there a specific order you wish to enforce between your modules
and stock modules; or between your modules and other non-stock modules?

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

About the order of execution of the modules.

ADD SP March 14, 2021 04:56AM

Re: About the order of execution of the modules.

Francis Daly March 14, 2021 11:20AM

Re: About the order of execution of the modules.

SP ADD March 14, 2021 01:44PM

Re: About the order of execution of the modules.

Francis Daly March 14, 2021 04:06PM

Re: About the order of execution of the modules.

ADD SP March 15, 2021 02:50AM

Re: About the order of execution of the modules.

Francis Daly March 15, 2021 01:28PM

Re: About the order of execution of the modules.

ADD SP March 16, 2021 02:52AM

Re: About the order of execution of the modules.

SP ADD March 14, 2021 01:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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