preventing requests with unknown host names
Francis Daly
francis at daoine.org
Fri Aug 21 07:22:25 UTC 2015
On Thu, Aug 20, 2015 at 03:55:51PM -0700, Igal @ Lucee.org wrote:
Hi there,
> > For each "listen" directive with a unique ip:port, add one server{}
> > block which contains "listen ip:port default_server; return 444;"
> This seems to do the trick.
>
> I expected there to be a way to do all of the IP addresses at once.
You can add all of the "listen ... default_server;" directives into a
single server{}.
But the way nginx chooses which server{} to use to handle a request,
means that there is not a single "listen" directive that will catch
everything that you don't want to go elsewhere.
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list