Welcome! Log In Create A New Profile

Advanced

Disallowing multiple http {} blocks in nginx.conf?

Yichun Zhang (agentzh)
October 10, 2013 03:48PM
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,
-agentzh
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Disallowing multiple http {} blocks in nginx.conf?

Yichun Zhang (agentzh) 6275 October 10, 2013 03:48PM

Re: Disallowing multiple http {} blocks in nginx.conf?

Maxim Dounin 1761 October 10, 2013 04:22PM

Re: Disallowing multiple http {} blocks in nginx.conf?

Yichun Zhang (agentzh) 1298 October 10, 2013 05:40PM

Re: Disallowing multiple http {} blocks in nginx.conf?

Maxim Dounin 1453 October 10, 2013 06:32PM



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

Online Users

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