# HG changeset patch # User Vladimir Homutov # Date 1344591338 0 # Node ID 7158aa1ec5200e820667bd6628a98b194380ef83 # Parent 13f64b371d2c3f1133242e4ca534052863709b6a Added special server name '$hostname' description. diff --git a/xml/en/docs/http/server_names.xml b/xml/en/docs/http/server_names.xml --- 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 block then nginx uses the empty name as the server name. -nginx versions up to 0.8.48 used the hostname as the server name +nginx versions up to 0.8.48 used the machine’s hostname as the server name in this case. +If a server name is defined as “$hostname” (0.9.4), the +machine’s hostname is used. @@ -434,6 +436,11 @@ then nginx has to execute the expression +The special server name “$hostname” has been supported +since 0.9.4. + + + A default server name value is an empty name “” since 0.8.48.