Mercurial > hg > nginx-site
changeset 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 | 4b5163be537f |
files | xml/en/docs/http/server_names.xml |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/server_names.xml +++ b/xml/en/docs/http/server_names.xml @@ -224,9 +224,11 @@ If no is defined in a <link doc="ngx_http_core_module.xml" id="server"/> block then nginx uses the empty name as the server name. <note> -nginx versions up to 0.8.48 used the <i>hostname</i> as the server name +nginx versions up to 0.8.48 used the machine’s hostname as the server name in this case. </note> +If a server name is defined as “<literal>$hostname</literal>” (0.9.4), the +machine’s hostname is used. </para> <para> @@ -434,6 +436,11 @@ then nginx has to execute the expression <list type="bullet"> <listitem> +The special server name “<literal>$hostname</literal>” has been supported +since 0.9.4. +</listitem> + +<listitem> A default server name value is an empty name “” since 0.8.48. </listitem>