浏览 713
在 /etc/nginx/nginx.conf,http域配置IP白名单,好像都是匹配到 deny all;这一条。看文档是可以在http 配置域。跟那个include有关系么?里面很多配置。
http {
allow ip;
deny all;
...
include /etc/nginx/conf.d/*.conf;
}
按点赞数排序
按时间排序
ip白名单跟include指令内容没关系,include是把其他配置文件内容包含进来。通常nginx配置文件会有多个,nginx.conf之外配置文件通常分别定义不同虚拟服务器的配置
0
回答于2022-10-25 15:04