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 0.0.0.1; http://nginx.org/r/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. Cheers, f -- Francis Daly [email protected] _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
