Mercurial > hg > nginx-site
changeset 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 | 2bf4cd2787c5 |
files | xml/en/docs/http/request_processing.xml |
diffstat | 1 files changed, 0 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/request_processing.xml +++ b/xml/en/docs/http/request_processing.xml @@ -92,24 +92,6 @@ Since version 0.8.48, this is the defaul server name, so the <code>server_name ""</code> can be omitted. In earlier versions, the machine's <i>hostname</i> was used as a default server name. - -<note> -Versions prior to 0.7.11 did not support an empty server name, -so another configuration was needed to achieve the same effect: - -<programlisting> -server { - listen 80 default; - server_name _; - return 444; -} -</programlisting> - -A non-existent domain name “_” is used as the server name, the server -should be the first or marked as <code>default</code>. -Note that the server name must be set explicitly here, otherwise nginx -will use the <i>hostname</i>. -</note> </para> </section>