About the order of execution of the modules.

SP ADD ADD_SP at outlook.com
Sun Mar 14 17:43:19 UTC 2021


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 at nginx.org> 代表 Francis Daly <francis at daoine.org>
发送时间: 2021年3月14日 23:18
收件人: nginx at nginx.org <nginx at 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 at daoine.org
_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20210314/23a7a409/attachment-0001.htm>


More information about the nginx mailing list