Code: Select all
touch /etc/nginx/conf.d/block.conf
echo "deny 111.222.111.222;" >> /etc/nginx/conf.d/block.conf
# just put IP you want to ban instead of 111.222...
systemctl restart nginx
Code: Select all
touch /etc/nginx/conf.d/block.conf
echo "deny 111.222.111.222;" >> /etc/nginx/conf.d/block.conf
# just put IP you want to ban instead of 111.222...
systemctl restart nginx
Code: Select all
server reached max_children setting (8), consider raising it