在nginx.conf中加入:
加在所有server的前面!
然後重啟服務!
本文出自 「運維筆記」 博客,請務必保留此出處http://lihuipeng.blog.51cto.com/3064864/759567
[火星人 ] nginx 禁止以ip形式訪問伺服器已經有579次圍觀
本文地址:http://coctec.com/docs/linux/show-post-46769.html