comparison xml/en/docs/http/ngx_http_rewrite_module.xml @ 1964:2a3c58dcb3e8

Documented support for the 308 Permanent Redirect.
author Yaroslav Zhuravlev <yar@nginx.com>
date Mon, 17 Apr 2017 19:29:14 +0300
parents 2f851f71ff08
children dd78dd9e2cb7
comparison
equal deleted inserted replaced
1963:351cefd5ff9c 1964:2a3c58dcb3e8
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9 9
10 <module name="Module ngx_http_rewrite_module" 10 <module name="Module ngx_http_rewrite_module"
11 link="/en/docs/http/ngx_http_rewrite_module.html" 11 link="/en/docs/http/ngx_http_rewrite_module.html"
12 lang="en" 12 lang="en"
13 rev="7"> 13 rev="8">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 The <literal>ngx_http_rewrite_module</literal> module is used to 18 The <literal>ngx_http_rewrite_module</literal> module is used to
210 a response header. 210 a response header.
211 </para> 211 </para>
212 212
213 <para> 213 <para>
214 Starting from version 0.8.42, it is possible to specify 214 Starting from version 0.8.42, it is possible to specify
215 either a redirect URL (for codes 301, 302, 303, and 307), 215 either a redirect URL (for codes 301, 302, 303, 307, and 308)
216 or the response body <value>text</value> (for other codes). 216 or the response body <value>text</value> (for other codes).
217 A response body text and redirect URL can contain variables. 217 A response body text and redirect URL can contain variables.
218 As a special case, a redirect URL can be specified as a URI 218 As a special case, a redirect URL can be specified as a URI
219 local to this server, in which case the full redirect URL 219 local to this server, in which case the full redirect URL
220 is formed according to the request scheme (<var>$scheme</var>) and the 220 is formed according to the request scheme (<var>$scheme</var>) and the
236 204, 400, 402 — 406, 408, 410, 411, 413, 416, and 500 — 504. 236 204, 400, 402 — 406, 408, 410, 411, 413, 416, and 500 — 504.
237 </note> 237 </note>
238 238
239 <note> 239 <note>
240 The code 307 was not treated as a redirect until versions 1.1.16 and 1.0.13. 240 The code 307 was not treated as a redirect until versions 1.1.16 and 1.0.13.
241 </note>
242
243 <note>
244 The code 308 was not treated as a redirect until version 1.13.0.
241 </note> 245 </note>
242 </para> 246 </para>
243 247
244 <para> 248 <para>
245 See also the <link doc="ngx_http_core_module.xml" id="error_page"/> directive. 249 See also the <link doc="ngx_http_core_module.xml" id="error_page"/> directive.