自己设置的ipblock.conf文件,deny了自己的手机ip然后includeipblock.conf;到服务器的nginx.conf的http{}下面效果:网站1是https协议,ip屏蔽成功网站2是http协议,ip屏蔽无效然后将在http网站的conf文件里面添加了includeipblock.conf;依然无效然后将denyip;直接写到http协议网站的conf文件里面,还是无法屏蔽请教各位上仙,这个怎么解决相关配置:文件夹/conf/下面文件:ipblock.confdenyip;…………文件:nginx.confhttp{includemime.types;default_typeapplication/octet-stream;includeipblock.conf;…………文件夹/conf/vhost下面网站1(https协议).confserver{listen80;#listen[::]:80;server_namewww.name1.comname1.com*.name1.com;return301https://www.nam1e.com$request_uri;}server{listen443sslhttp2;#listen[::]:443sslhttp2;server_namewww.name1.comname1.com*.name1.com;indexindex.htmlindex.htmindex.phpdefault.htmldefault.htmdefault.php;root/home/wwwroot/www.name1.com;sslon;…………网站2(http协议).confserver{listen80;#listen[::]:80;server_namewww.name2.comname2.com;indexindex.htmlindex.htmindex.phpdefault.htmldefault.htmdefault.php;root/home/wwwroot/www.name2.com;//这儿添加的includeipblock.conf;//或者直接写的denyip;
BIG阳
宝慕林4294392
相关分类