Mercurial > hg > nginx-site
comparison xml/en/docs/http/request_processing.xml @ 74:e9948ec6286b
Removed the pre-0.7.11 tip for "How to prevent processing requests with
undefined server names".
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 10 Oct 2011 09:39:11 +0000 |
parents | 6327603448e2 |
children | 49443032011c |
comparison
equal
deleted
inserted
replaced
73:6327603448e2 | 74:e9948ec6286b |
---|---|
90 is returned that closes the connection. | 90 is returned that closes the connection. |
91 Since version 0.8.48, this is the default setting for the | 91 Since version 0.8.48, this is the default setting for the |
92 server name, so the <code>server_name ""</code> can be omitted. | 92 server name, so the <code>server_name ""</code> can be omitted. |
93 In earlier versions, the machine's <i>hostname</i> was used as | 93 In earlier versions, the machine's <i>hostname</i> was used as |
94 a default server name. | 94 a default server name. |
95 | |
96 <note> | |
97 Versions prior to 0.7.11 did not support an empty server name, | |
98 so another configuration was needed to achieve the same effect: | |
99 | |
100 <programlisting> | |
101 server { | |
102 listen 80 default; | |
103 server_name _; | |
104 return 444; | |
105 } | |
106 </programlisting> | |
107 | |
108 A non-existent domain name “_” is used as the server name, the server | |
109 should be the first or marked as <code>default</code>. | |
110 Note that the server name must be set explicitly here, otherwise nginx | |
111 will use the <i>hostname</i>. | |
112 </note> | |
113 </para> | 95 </para> |
114 | 96 |
115 </section> | 97 </section> |
116 | 98 |
117 | 99 |