Disallowing multiple http {} blocks in nginx.conf?

Yichun Zhang (agentzh) agentzh at gmail.com
Thu Oct 10 19:46:03 UTC 2013

Hello guys!

Some Nginx users use multiple http {} blocks in their nginx.conf, which
causing issues because following http {} blocks override previous http
modules' main_conf leading inconsistencies in calls
like ngx_http_conf_get_module_main_conf
and ngx_http_cycle_get_module_main_conf in global handler contexts like
"post configuration" handlers.

Do you think it is a good idea to simply disallow multiple http {} blocks
in nginx.conf?

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20131010/e18070b5/attachment.html>

More information about the nginx-devel mailing list