Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx и хост по умолчанию
- To: arriah <nginx-ru@xxxxxxxxx>
- Subject: Re: nginx и хост по умолчанию
- From: Михаил Монашёв <postmaster@xxxxxxxxxxxxx>
- Date: Fri, 1 Feb 2013 18:32:08 +0400
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=softsearch.ru; h=date:from :reply-to:message-id:to:subject:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=main; i= postmaster@xxxxxxxxxxxxx; bh=d9FWO4pGMUvVqljNcY/fCr9P1Qk=; b=TrA 8qN7bH+OgL9yB8dGQPQVTiQvpL67QNsGVqxfjbWa5ahurmDG7mj8oqIeFQEOvkM1 At+AjXgtxXE1aSBrBeZNDNzRa2Y2VUD1HYPhIiKjOZojnriX3DvGJRewxJz3mjdO wey6gVH26yFgkvhRaqT5N+d2u43dsPIsLVMILRuo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=softsearch.ru; h=date:from :reply-to:message-id:to:subject:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= main; b=fVZfcMXd9+vkQd6aA4UZv+VYAsC3VeKHI2jxDGf7P1YGBcL5YW2WX4X6 qZNYh4KvxqIniOAY85R4xCtZcq+bccMTsQBYyMt73oouiiirnuDSpTiIoT5Gr8wn 6DWZH2TyfBHb8u08YOy+ElrTfxgCeRX3LfrRbp0jNZbhOZrw76k=
- In-reply-to: <44bc4a1ab888b6cf7fa0cf9b77d37aa4.NginxMailingListRussian@forum.nginx.org>
- References: <44bc4a1ab888b6cf7fa0cf9b77d37aa4.NginxMailingListRussian@forum.nginx.org>
Здравствуйте, arriah.
Вот это и решит Вашу проблему и защитит от всякого мусора, который
может идти на 80-ый порт.
server {
listen 1.2.3.4:80 default accept_filter=httpready;
server_name for.trash;
location / {
return 444;
}
}
--
С уважением,
Михаил mailto:postmaster@xxxxxxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|