nginx报错nginx: [warn] low address bits of


 

今天配置ip白名单的时候nginx报以下错误,看了官网的文档说这些ip并不生效,所以需要改正。

nginx: [warn] low address bits of 92.67.220.249/28 are meaningless in /usr/local/nginx/conf/iplistol.conf:23004
nginx: [warn] low address bits of 92.67.221.129/28 are meaningless in /usr/local/nginx/conf/iplistol.conf:23005

错误原因是因为子网划分错误,比如 92.67.220.249/28,每个子网有16个ip所以起始ip一定要是16的倍数这个子网应该写成这样92.67.220.240/28

那么这个92.67.221.129/28就应该写成92.67.221.128/28,修改完毕后再reload nginx就不会报错了。


Whatever is worth doing is worth doing well.