comparison xml/en/docs/http/server_names.xml @ 623:7158aa1ec520

Added special server name '$hostname' description.
author Vladimir Homutov <vl@nginx.com>
date Fri, 10 Aug 2012 09:35:38 +0000
parents 13f64b371d2c
children af3f38e349eb
comparison
equal deleted inserted replaced
622:13f64b371d2c 623:7158aa1ec520
222 If no 222 If no
223 <link doc="ngx_http_core_module.xml" id="server_name"/> 223 <link doc="ngx_http_core_module.xml" id="server_name"/>
224 is defined in a <link doc="ngx_http_core_module.xml" id="server"/> block 224 is defined in a <link doc="ngx_http_core_module.xml" id="server"/> block
225 then nginx uses the empty name as the server name. 225 then nginx uses the empty name as the server name.
226 <note> 226 <note>
227 nginx versions up to 0.8.48 used the <i>hostname</i> as the server name 227 nginx versions up to 0.8.48 used the machine’s hostname as the server name
228 in this case. 228 in this case.
229 </note> 229 </note>
230 If a server name is defined as “<literal>$hostname</literal>” (0.9.4), the
231 machine’s hostname is used.
230 </para> 232 </para>
231 233
232 <para> 234 <para>
233 If someone makes a request using an IP address instead of a server name, 235 If someone makes a request using an IP address instead of a server name,
234 the <header>Host</header> request header field will contain the IP address 236 the <header>Host</header> request header field will contain the IP address
432 434
433 <para> 435 <para>
434 <list type="bullet"> 436 <list type="bullet">
435 437
436 <listitem> 438 <listitem>
439 The special server name “<literal>$hostname</literal>” has been supported
440 since 0.9.4.
441 </listitem>
442
443 <listitem>
437 A default server name value is an empty name “” since 0.8.48. 444 A default server name value is an empty name “” since 0.8.48.
438 </listitem> 445 </listitem>
439 446
440 <listitem> 447 <listitem>
441 Named regular expression server name captures have been supported since 0.8.25. 448 Named regular expression server name captures have been supported since 0.8.25.