===== Nginx =====
https://nginx.org/ru/docs/\\
https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-docker/#
Пути
# www root
/usr/share/nginx/html
# conf
/etc/nginx/nginx.conf
/etc/nginx/conf.d/default.conf
# includes
/etc/nginx/conf.d/*.conf
==== Логи ====
# IP со счётчиком
cat /var/log/nginx/access.log |grep site |grep 200 |awk '{print $1}' |sort |uniq -c > ips.txt
https://www.the-art-of-web.com/system/logs/
==== Блок IP/подсетей ====
nano /etc/nginx/nginx.conf
## Block spammers and other unwanted visitors ##
include /etc/nginx/banlist.conf;
nano /etc/nginx/banlist.conf
deny 1.2.3.4;
deny 91.212.45.0/24;
# тест настроек
nginx -t
# перечитать конфиг (не рвёт соединения)
nginx -s reload