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

2013-10-10 Thread Maxim Dounin
Hello! On Thu, Oct 10, 2013 at 02:39:45PM -0700, Yichun Zhang (agentzh) wrote: > Hello! > > On Thu, Oct 10, 2013 at 1:21 PM, Maxim Dounin wrote: > > > > I don't thinks that it's a good idea to disallow configurations > > with multiple http{} blocks. While this wasn't claimed to be > > supported

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

2013-10-10 Thread Yichun Zhang (agentzh)
Hello! On Thu, Oct 10, 2013 at 1:21 PM, Maxim Dounin wrote: > > I don't thinks that it's a good idea to disallow configurations > with multiple http{} blocks. While this wasn't claimed to be > supported, it allows fun things like running multiple > configuration isolated, and e.g. makes merging c

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

2013-10-10 Thread Maxim Dounin
Hello! On Thu, Oct 10, 2013 at 12:46:03PM -0700, Yichun Zhang (agentzh) wrote: > 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

Disallowing multiple http {} blocks in nginx.conf?

2013-10-10 Thread Yichun Zhang (agentzh)
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 h