Welcome! Log In Create A New Profile

Advanced

Config directive inheritance: docs and rules (was: Config variable inheritance)

Jonathan Matthews
April 03, 2012 01:22PM
Hi all -

http://www.ruby-forum.com/topic/188742 seems to contain some
information I've not found explicitly stated anywhere else: that
config directive inheritance is an all or nothing mechanism. Have I
missed some docs somewhere?

Following on from this, I'd like to understand if there's anything I
can reliably determine from a directive's name about the impact that
defining it will have on *other* directives' inheritability.

Can I, for instance, assume that defining an xyx_ prefixed directive in
a sub-scope will affect *only* the inheritance of other xyz_ prefixed
directives? Or can there be inheritance side-effects between, say,
directive "abc" and "def" that I can't possibly determine without
documentation or trial and error?

Equally, can I assume that *all* xyz_ prefixed directives will have
their inheritance affected by the sub-scope definition of any *other*
xyz_ prefixed directive? Or are there examples where defining
"xyz_foo" does *not* impact the inheritance of "xyz_bar"?

I'm thinking specifically of proxy_* directives, whereas the thread I
link to above is talking about multiple fastcgi_param directives.
Here, I'm interested in how, say, proxy_set_header affects the
inheritance of higher scope's proxy_pass directive - i.e. where the
prefix matches but they're *not* the same directive. Does nginx (core)
derive or imply anything relating to the name-spacing of directives
before (in my example) the proxy module sees the config, or is it
entirely down to how each module implements the configuration
aggregation/inheritance?

Many thanks,
Jonathan
--
Jonathan Matthews
London, Oxford, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Config directive inheritance: docs and rules (was: Config variable inheritance)

Jonathan Matthews April 03, 2012 01:22PM

Re: Config directive inheritance: docs and rules (was: Config variable inheritance)

Francis Daly April 04, 2012 08:42AM

Re: Config directive inheritance: docs and rules (was: Config variable inheritance)

Maxim Dounin April 04, 2012 10:00AM

Re: Config directive inheritance: docs and rules (was: Config variable inheritance)

Francis Daly April 04, 2012 12:56PM

Re: Config directive inheritance: docs and rules (was: Config variable inheritance)

Maxim Dounin April 04, 2012 02:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 204
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready