<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi there!
<div><br>
</div>
<div>Thanks for your answer!</div>
<div><br>
</div>
<div>In my module, ngx_module_type is set to HTTP, so ngx_module_order doesn't apply.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>If I am correct, I will list below the questions I would like to ask and hopefully the questions below are clear and unambiguous.</div>
<div><br>
</div>
<div>* How to control the order of execution between the dynamic stock module and my dynamic module.</div>
<div>* How to control the order of execution between the dynamic stock module and my static module.</div>
<div>* How to control the order of execution between my dynamic non-stock modules and my dynamic modules.</div>
<div>* How to control the order of execution between dynamic non-stock modules and my static modules.</div>
<div>* How to control the order of execution between static stock modules and my dynamic modules.</div>
<div>* How to control the order of execution between static stock modules and my static modules.</div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
ADD-SP<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> nginx <nginx-bounces@nginx.org> 代表 Francis Daly <francis@daoine.org><br>
<b>发送时间:</b> 2021年3月14日 23:18<br>
<b>收件人:</b> nginx@nginx.org <nginx@nginx.org><br>
<b>主题:</b> Re: About the order of execution of the modules.</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Sun, Mar 14, 2021 at 08:55:20AM +0000, ADD SP wrote:<br>
<br>
Hi there,<br>
<br>
> 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?<br>
> <br>
<br>
Does the "ngx_module_order" content at<br>
<a href="http://nginx.org/en/docs/dev/development_guide.html#adding_new_modules">http://nginx.org/en/docs/dev/development_guide.html#adding_new_modules</a><br>
answer your questions?<br>
<br>
If not: is there a specific order you wish to enforce between your modules<br>
and stock modules; or between your modules and other non-stock modules?<br>
<br>
Cheers,<br>
<br>
f<br>
-- <br>
Francis Daly francis@daoine.org<br>
_______________________________________________<br>
nginx mailing list<br>
nginx@nginx.org<br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div>
</span></font></div>
</body>
</html>