Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_core_module.xml @ 2039:d2969b2f69ae
Added history notes about codes 201, 307, and 308.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 17 Apr 2017 19:57:19 +0300 |
parents | ee0aeddbe8a2 |
children | 0b3103eabdf1 |
comparison
equal
deleted
inserted
replaced
2038:ffb3570c352c | 2039:d2969b2f69ae |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_core_module" | 10 <module name="Module ngx_http_core_module" |
11 link="/en/docs/http/ngx_http_core_module.html" | 11 link="/en/docs/http/ngx_http_core_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="73"> | 13 rev="74"> |
14 | 14 |
15 <section id="directives" name="Directives"> | 15 <section id="directives" name="Directives"> |
16 | 16 |
17 <directive name="absolute_redirect"> | 17 <directive name="absolute_redirect"> |
18 <syntax><literal>on</literal> | <literal>off</literal></syntax> | 18 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
696 error_page 404 =301 http://example.com/notfound.html; | 696 error_page 404 =301 http://example.com/notfound.html; |
697 </example> | 697 </example> |
698 In this case, by default, the response code 302 is returned to the client. | 698 In this case, by default, the response code 302 is returned to the client. |
699 It can only be changed to one of the redirect status | 699 It can only be changed to one of the redirect status |
700 codes (301, 302, 303, 307, and 308). | 700 codes (301, 302, 303, 307, and 308). |
701 <note> | |
702 The code 307 was not treated as a redirect until versions 1.1.16 and 1.0.13. | |
703 </note> | |
704 | |
705 <note> | |
706 The code 308 was not treated as a redirect until version 1.13.0. | |
707 </note> | |
701 </para> | 708 </para> |
702 | 709 |
703 <para> | 710 <para> |
704 These directives are inherited from the previous level if and | 711 These directives are inherited from the previous level if and |
705 only if there are no | 712 only if there are no |