# HG changeset patch # User Vladimir Homutov # Date 1344591338 0 # Node ID 7158aa1ec5200e820667bd6628a98b194380ef83 # Parent 13f64b371d2c3f1133242e4ca534052863709b6a Added special server name '$hostname' description. diff -r 13f64b371d2c -r 7158aa1ec520 xml/en/docs/http/server_names.xml --- a/xml/en/docs/http/server_names.xml Thu Aug 09 11:04:23 2012 +0000 +++ b/xml/en/docs/http/server_names.xml Fri Aug 10 09:35:38 2012 +0000 @@ -224,9 +224,11 @@ 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 @@ +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.