Version: 2.1.1
Platform: x86_64
First, install or update to the latest system software.
apt update
apt install build-essential chrpath libssl-dev libxft-dev
| map $http_user_agent $url { | |
| ~BPC.[4] /eset_upd/v4/update.ver; | |
| ~BPC.[5] /eset_upd/v5/update.ver; | |
| ~BPC.[6] /eset_upd/v6/update.ver; | |
| ~BPC.[7] /eset_upd/v7/update.ver; | |
| } | |
| server { | |
| server_name site.ru www.site.ru; |
| http { | |
| map $http_user_agent $limit_bots { | |
| default ''; | |
| ~*(google|bing|yandex|msnbot) $binary_remote_addr; | |
| } | |
| limit_req_zone $limit_bots zone=bots:10m rate=1r/m; | |
| server { |
| server{ | |
| listen 80; | |
| listen 443 ssl; | |
| server_name site.ru www.site.ru; | |
| ssl on; | |
| if ( $scheme = "http" ) { | |
| rewrite ^/(.*)$ https://$host/$1 permanent; | |
| } | |
| index index.php index.html; |
| server { | |
| listen 80; | |
| server_name www.example.com; | |
| root /var/www/vhosts/example.com/public/; | |
| location / | |
| { | |
| index index.php index.html index.htm; | |
| } |