set_real_ip_from --how to load IP list file ?
r at roze.lv
Mon Nov 9 02:03:55 UTC 2015
> I'm using CDN with my site.
> There are many IPs on network.
> set_real_ip_from only can add IP in one line.
set_real_ip_from supports subnet masks, so you can more or less achieve the
same as in apache.
If you want an external file you can use include (
http://nginx.org/en/docs/ngx_core_module.html#include ) just in the file
prefix each line with set_real_ip_from.
p.s. some CDNs even provide copy/paste configurations ( like
More information about the nginx