what does "deny;" do

Francis Daly francis at daoine.org
Fri Apr 26 15:26:36 UTC 2019

On Fri, Apr 19, 2019 at 05:24:14AM -0400, allenhe wrote:

Hi there,

> I found this is valid, and want to know what scenario it's used for.
> deny;


Are you asking what the directive is for; or are you asking why an
argument is accepted; or are you asking why this particular argument
is accepted?

I suspect that the answer to the last is "it looks like an IP address;
and if the administrator wants to configure that, why should nginx try
to stop them?".

I also suspect that hoping that nginx will interpret that address in
accordance with an interpretation of RFC 6890 (or RFC 1122) is ambitious,
unless you can see that in the code.

There are a bunch of "reserved" IP addresses. nginx probably doesn't care
about them. You can set your network up any way you want, and nginx will
(in general) believe what you put in your config.


Francis Daly        francis at daoine.org

More information about the nginx mailing list