comparison xml/en/docs/http/server_names.xml @ 645:bb450e295ca2

Translated "Server names" into Russian and slightly changed original layout.
author Vladimir Homutov <vl@nginx.com>
date Fri, 17 Aug 2012 07:15:00 +0000
parents af3f38e349eb
children 77a3314c74a7
comparison
equal deleted inserted replaced
644:b4d15f1c7c06 645:bb450e295ca2
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 machine’s hostname 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 </para>
231
232 <para>
230 If a server name is defined as “<literal>$hostname</literal>” (0.9.4), the 233 If a server name is defined as “<literal>$hostname</literal>” (0.9.4), the
231 machine’s hostname is used. 234 machine’s hostname is used.
232 </para> 235 </para>
233 236
234 <para> 237 <para>
378 the <link doc="ngx_http_core_module.xml" id="server_names_hash_max_size"/> 381 the <link doc="ngx_http_core_module.xml" id="server_names_hash_max_size"/>
379 and <link doc="ngx_http_core_module.xml" id="server_names_hash_bucket_size"/> 382 and <link doc="ngx_http_core_module.xml" id="server_names_hash_bucket_size"/>
380 directives at the <i>http</i> level may become necessary. 383 directives at the <i>http</i> level may become necessary.
381 The default value of the 384 The default value of the
382 <link doc="ngx_http_core_module.xml" id="server_names_hash_bucket_size"/> 385 <link doc="ngx_http_core_module.xml" id="server_names_hash_bucket_size"/>
383 may be equal to 32, or 64, or another value, 386 directive may be equal to 32, or 64, or another value,
384 depending on CPU cache line size. 387 depending on CPU cache line size.
385 If the default value is 32 and server name is defined as 388 If the default value is 32 and server name is defined as
386 “<literal>too.long.server.name.example.org</literal>” 389 “<literal>too.long.server.name.example.org</literal>”
387 then nginx will fail to start and display the error message: 390 then nginx will fail to start and display the error message:
388 391
418 421
419 <para> 422 <para>
420 If a server is the only server for a listen port, then nginx will not test 423 If a server is the only server for a listen port, then nginx will not test
421 server names at all (and will not build the hash tables for the listen port). 424 server names at all (and will not build the hash tables for the listen port).
422 However, there is one exception. 425 However, there is one exception.
423 If a 426 If a server name is a regular expression with captures,
424 <link doc="ngx_http_core_module.xml" id="server_name"/>
425 is a regular expression with captures,
426 then nginx has to execute the expression to get the captures. 427 then nginx has to execute the expression to get the captures.
427 </para> 428 </para>
428 429
429 </section> 430 </section>
430 431