comparison xml/en/docs/http/ngx_http_core_module.xml @ 1879:3685d90e133e

Documented the "absolute_redirect" directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Mon, 26 Dec 2016 23:25:26 +0300
parents 5cd4964fbc5f
children da00a2526415
comparison
equal deleted inserted replaced
1878:127ae107e5a9 1879:3685d90e133e
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="64"> 13 rev="65">
14 14
15 <section id="directives" name="Directives"> 15 <section id="directives" name="Directives">
16
17 <directive name="absolute_redirect">
18 <syntax><literal>on</literal> | <literal>off</literal></syntax>
19 <default>on</default>
20 <context>http</context>
21 <context>server</context>
22 <context>location</context>
23 <appeared-in>1.11.8</appeared-in>
24
25 <para>
26 If disabled, redirects issued by nginx will be relative.
27 </para>
28
29 <para>
30 See also <link id="server_name_in_redirect"/>
31 and <link id="port_in_redirect"/> directives.
32 </para>
33
34 </directive>
35
16 36
17 <directive name="aio"> 37 <directive name="aio">
18 <syntax> 38 <syntax>
19 <literal>on</literal> | 39 <literal>on</literal> |
20 <literal>off</literal> | 40 <literal>off</literal> |
1928 <context>http</context> 1948 <context>http</context>
1929 <context>server</context> 1949 <context>server</context>
1930 <context>location</context> 1950 <context>location</context>
1931 1951
1932 <para> 1952 <para>
1933 Enables or disables specifying the port in redirects issued by nginx. 1953 Enables or disables specifying the port in
1954 <link id="absolute_redirect">absolute</link> redirects issued by nginx.
1934 </para> 1955 </para>
1935 1956
1936 <para> 1957 <para>
1937 The use of the primary server name in redirects is controlled by 1958 The use of the primary server name in redirects is controlled by
1938 the <link id="server_name_in_redirect"/> directive. 1959 the <link id="server_name_in_redirect"/> directive.
2459 <context>server</context> 2480 <context>server</context>
2460 <context>location</context> 2481 <context>location</context>
2461 2482
2462 <para> 2483 <para>
2463 Enables or disables the use of the primary server name, specified by the 2484 Enables or disables the use of the primary server name, specified by the
2464 <link id="server_name"/> 2485 <link id="server_name"/> directive,
2465 directive, in redirects issued by nginx. 2486 in <link id="absolute_redirect">absolute</link> redirects issued by nginx.
2466 When the use of the primary server name is disabled, the name from the 2487 When the use of the primary server name is disabled, the name from the
2467 <header>Host</header> request header field is used. 2488 <header>Host</header> request header field is used.
2468 If this field is not present, the IP address of the server is used. 2489 If this field is not present, the IP address of the server is used.
2469 </para> 2490 </para>
2470 2491