摘要: 由于网站使用了cdn所以$remote_addr获取的ip是cdn的ip,我现在先禁止某些ip访问发现无法禁止cdn传递过来的客户端的ip也就是$http_x_forwarded_for这个参数。比如我的日志格式这样的:log_format main '$http_x_forwarded_for $ 阅读全文
posted @ 2017-12-20 01:19 arun_yh 阅读(2116) 评论(0) 推荐(0) 编辑