1010<module name =" Module ngx_http_headers_module"
1111 link =" /en/docs/http/ngx_http_headers_module.html"
1212 lang =" en"
13- rev =" 13 " >
13+ rev =" 14 " >
1414
1515<section id =" summary" >
1616
@@ -60,11 +60,13 @@ the response code equals 200, 201 (1.3.10), 204, 206, 301, 302, 303, 304,
6060Parameter value can contain variables.
6161</para >
6262
63- <para >
63+ <para id = " add_header_default_inherit " >
6464There could be several <literal >add_header</literal > directives.
6565These directives are inherited from the previous configuration level
6666if and only if there are no <literal >add_header</literal > directives
6767defined on the current level.
68+ Inheritance rules can be redefined with the
69+ <link id =" add_header_inherit" /> directive (1.29.3).
6870</para >
6971
7072<para >
@@ -75,6 +77,45 @@ the header field will be added regardless of the response code.
7577</directive >
7678
7779
80+ <directive name =" add_header_inherit" >
81+ <syntax >
82+ <literal >on</literal > |
83+ <literal >off</literal > |
84+ <literal >merge</literal ></syntax >
85+ <default >on</default >
86+ <context >http</context >
87+ <context >server</context >
88+ <context >location</context >
89+ <context >if in location</context >
90+ <appeared-in >1.29.3</appeared-in >
91+
92+ <para >
93+ Allows altering inheritance rules for the values specified in the
94+ <link id =" add_header" /> directives.
95+ By default, the
96+ <link id =" add_header_default_inherit" >standard</link > inheritance model is used.
97+ </para >
98+
99+ <para >
100+ The <literal >merge</literal > parameter enables appending values
101+ from the previous level to the values defined at the current level.
102+ </para >
103+
104+ <para >
105+ The <literal >off</literal > parameter cancels inheritance of the values
106+ from the previous configuration level.
107+ </para >
108+
109+ <para >
110+ The inheritance rules themselves are inherited in a standard way.
111+ For example, <literal >add_header_inherit merge;</literal >
112+ specified at the top level will
113+ be inherited in all nested levels recursively unless redefined later.
114+ </para >
115+
116+ </directive >
117+
118+
78119<directive name =" add_trailer" >
79120<syntax >
80121<value >name</value > <value >value</value >
@@ -92,11 +133,13 @@ the response code equals 200, 201, 206, 301, 302, 303, 307, or 308.
92133Parameter value can contain variables.
93134</para >
94135
95- <para >
136+ <para id = " add_trailer_default_inherit " >
96137There could be several <literal >add_trailer</literal > directives.
97138These directives are inherited from the previous configuration level
98139if and only if there are no <literal >add_trailer</literal > directives
99140defined on the current level.
141+ Inheritance rules can be redefined with the
142+ <link id =" add_trailer_inherit" /> directive (1.29.3).
100143</para >
101144
102145<para >
@@ -107,6 +150,45 @@ the specified field will be added regardless of the response code.
107150</directive >
108151
109152
153+ <directive name =" add_trailer_inherit" >
154+ <syntax >
155+ <literal >on</literal > |
156+ <literal >off</literal > |
157+ <literal >merge</literal ></syntax >
158+ <default >on</default >
159+ <context >http</context >
160+ <context >server</context >
161+ <context >location</context >
162+ <context >if in location</context >
163+ <appeared-in >1.29.3</appeared-in >
164+
165+ <para >
166+ Allows altering inheritance rules for the values specified in the
167+ <link id =" add_trailer" /> directives.
168+ By default, the
169+ <link id =" add_trailer_default_inherit" >standard</link > inheritance model is used.
170+ </para >
171+
172+ <para >
173+ The <literal >merge</literal > parameter enables appending values
174+ from the previous level to the values defined at the current level.
175+ </para >
176+
177+ <para >
178+ The <literal >off</literal > parameter cancels inheritance of the values
179+ from the previous configuration level.
180+ </para >
181+
182+ <para >
183+ The inheritance rules themselves are inherited in a standard way.
184+ For example, <literal >add_trailer_inherit merge;</literal >
185+ specified at the top level will
186+ be inherited in all nested levels recursively unless redefined later.
187+ </para >
188+
189+ </directive >
190+
191+
110192<directive name =" expires" >
111193<syntax >[<literal >modified</literal >] <value >time</value ></syntax >
112194<syntax >
0 commit comments