{"id":7715,"date":"2020-02-25T14:59:20","date_gmt":"2020-02-25T11:59:20","guid":{"rendered":"http:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/"},"modified":"2023-10-17T17:51:35","modified_gmt":"2023-10-17T14:51:35","slug":"tuning-nginx-for-performance","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/","title":{"rendered":"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/unihost.com\/help\/minio.php?NGINX-logo.png\" alt=\"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX - Image 1\" width=\"1921\" height=\"645\" \/ title=\"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX - Image 1\"><\/span><\/p>\n<h2 id=\"id-06.\u0422\u044e\u043d\u0438\u043d\u0433\u0441\u0435\u0440\u0432\u0435\u0440\u0430NGINX-\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435worker_processes\" style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><span lang=\"ru\"><span style=\"font-size: 12pt;\" title=\"\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 worker_processes<\/span><\/span><\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 master\u00a0\u0438 worker \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 Nginx \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u00abnginx \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u0438\u043d master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 &#8211; \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b. Worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. Nginx \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445 \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u0435 \u043e\u0442 \u041e\u0421 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 \u00bb.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, worker_processes \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 <a href=\"https:\/\/unihost.com\/dedicated\/\">\u0432\u0430\u0448\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443<\/a>, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0434\u0435\u0440 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043e, \u0447\u0442\u043e\u0431\u044b Nginx \u043c\u043e\u0433 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c. \u041f\u0443\u0442\u044c \u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Nginx \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: <em>\/etc\/nginx\/nginx.conf<\/em><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0427\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 \u0443 \u0432\u0430\u0441 \u043d\u0430 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># grep processor \/proc\/cpuinfo | wc \u2013l\n4<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Worker_connections\u00a0\u00a0\u0441\u043e\u043e\u0431\u0449\u0430\u044e\u0442 worker_processes, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0442\u044c Nginx. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e &#8211; 768, \u043d\u043e \u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c 2 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 worker_processes &#8211; 1024, \u0438 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u0430 \u043e\u0442 Nginx. \u0418\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u044d\u0442\u043e\u0433\u043e, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044f \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e \u044f\u0434\u0440\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e worker_processes, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c worker_connections \u0440\u0430\u0432\u043d\u044b\u043c 1024 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442, \u0447\u0442\u043e Nginx \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0442\u044c 1024 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">worker_processes\u00a0\u00a04;\nevents {\n \u00a0\u00a0\u00a0worker_connections\u00a0\u00a08096;\n \u00a0\u00a0\u00a0multi_accept\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 on;\n \u00a0\u00a0\u00a0use\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 epoll;\n}\nworker_rlimit_nofile 100000;\nerror_log \/var\/log\/nginx\/error.log crit;\nhttp {\n \u00a0\u00a0\u00a0sendfile\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 on;\n \u00a0\u00a0\u00a0tcp_nopush\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 on;\n \u00a0\u00a0\u00a0tcp_nodelay\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 on;\n \u00a0\u00a0\u00a0keepalive_timeout\u00a0\u00a030;\n \u00a0\u00a0\u00a0access_log\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 off; \n \u00a0\u00a0\u00a0tcp_nopush\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 on;\n \u00a0\u00a0\u00a0tcp_nodelay\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 on;\n \u00a0\u00a0\u00a0reset_timedout_connection on;\n \u00a0\u00a0\u00a0client_body_timeout 10;\n \u00a0\u00a0\u00a0send_timeout 2;\n \u00a0\u00a0\u00a0keepalive_requests 100000;\n \u00a0\u00a0\u00a0open_file_cache max=200000 inactive=20s;\n \u00a0\u00a0\u00a0open_file_cache_valid 30s;\n \u00a0\u00a0\u00a0open_file_cache_min_uses 2;\n \u00a0\u00a0\u00a0open_file_cache_errors on;\n}<\/span><\/pre>\n<h2 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0421\u0436\u0430\u0442\u0438\u0435 Gzip<\/span><\/h2>\n<div>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Gzip \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u043e \u0441\u0435\u0442\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 Nginx. \u041e\u0434\u043d\u0430\u043a\u043e \u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044f \u0443\u0440\u043e\u0432\u0435\u043d\u044c gzip_comp_level \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0432\u044b\u0441\u043e\u043a\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u0447\u043d\u0435\u0442 \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043f\u0443\u0441\u0442\u0443\u044e \u0446\u0438\u043a\u043b\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430.<\/span><\/p>\n<\/div>\n<div>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">http {\n...\n \u00a0\u00a0\u00a0gzip on;\n \u00a0\u00a0\u00a0gzip_disable msie6;\n \u00a0\u00a0\u00a0gzip_vary on;\n \u00a0\u00a0\u00a0gzip_proxied any;\n \u00a0\u00a0\u00a0gzip_comp_level 6;\n \u00a0\u00a0\u00a0gzip_buffers 32 16k;\n \u00a0\u00a0\u00a0gzip_min_length 250;\n \u00a0\u00a0\u00a0gzip_types image\/jpeg image\/bmp image\/svg+xml text\/plain text\/css application\/json application\/javascript application\/x-javascript text\/xml application\/xml application\/xml+rss text\/javascript image\/x-icon;<\/span><\/pre>\n<h2 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/span><\/h2>\n<div>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 &#8211; \u044d\u0442\u043e \u0435\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0441\u0447\u0438\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0443\u0436\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0434\u043b\u044f \u043a\u044d\u0448\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e &#8211; \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0438 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt; color: #23282d; white-space: pre-wrap;\">server {<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">...\n \u00a0\u00a0\u00a0location \/ {\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0...\n  }\n   \u00a0\u00a0\u00a0...\n \u00a0\u00a0\u00a0location ~* \\.(jpg|jpeg|png|gif|ico|xml)$ {\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0expires 30d;\n \u00a0\u00a0\u00a0}\n \u00a0\u00a0\u00a0location ~* \\.(css|js)$ {\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0expires 7d;\n \u00a0\u00a0\u00a0}\n...\n}<\/span><\/pre>\n<div>\n<h2 id=\"id-06.\u0422\u044e\u043d\u0438\u043d\u0433\u0441\u0435\u0440\u0432\u0435\u0440\u0430NGINX-HTTP\/2Support\" style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">HTTP\/2 Support<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">HTTP \/ 2 \u0438\u043c\u0435\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 HTTP, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043f\u043e\u043c\u0438\u043c\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e. \u0412\u0441\u0435, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u044d\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c http \u043d\u0430 http2 \u0432 \u0431\u043b\u043e\u043a\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">server{\n...\nlisten 443 http2 default_server;\n \u00a0\u00a0\u00a0listen [::]:443 http2 default_server;\n \u00a0\u00a0\u00a0server_name example.com;\n...\n}<\/span><\/pre>\n<div>\n<h2 id=\"id-06.\u0422\u044e\u043d\u0438\u043d\u0433\u0441\u0435\u0440\u0432\u0435\u0440\u0430NGINX-RedirectWWW\" style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Redirect WWW<\/span><\/h2>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">server {\n...\n}\nserver {\n \u00a0\u00a0\u00a0listen 80;\n \u00a0\u00a0\u00a0listen [::]:80;\n \u00a0\u00a0\u00a0server_name example.com;\n \u00a0\u00a0\u00a0return 301 https:\/\/$server_name$request_uri;\n}\nserver {\n \u00a0\u00a0\u00a0listen 80;\n \u00a0\u00a0\u00a0listen [::]:80;\n \u00a0\u00a0\u00a0listen 443 ssl http2;\n \u00a0\u00a0\u00a0listen [::]:443 ssl http2;\n \u00a0\u00a0\u00a0server_name www.example.com;\n \u00a0\u00a0\u00a0return 301 https:\/\/example.com$request_uri;\n}<\/span><\/pre>\n<h2 id=\"id-06.\u0422\u044e\u043d\u0438\u043d\u0433\u0441\u0435\u0440\u0432\u0435\u0440\u0430NGINX-\u041f\u0440\u043e\u0441\u0442\u0430\u044f\u0437\u0430\u0449\u0438\u0442\u0430\u043e\u0442DDoS\" style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0440\u043e\u0441\u0442\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0 DDoS<\/span><\/h2>\n<div><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042d\u0442\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043e\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u0442 DDoS, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043c\u0435\u0434\u043b\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 DDoS.<\/span><\/div>\n<div>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">http {<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> . . .<\/span>\n<em><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u043d\u0430 \u043e\u0434\u0438\u043d IP<\/span><\/em>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;\n<\/span>\n<em><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0430\u043d\u0441\u0430<\/span><\/em>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=10r\/s;\n<\/span>\n<em><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># \u0437\u043e\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0432\u0435\u0440\u0445\u043d\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u0441\u0435\u0440\u0432\u0435\u0440<\/span><\/em>\n\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">server {<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0limit_conn conn_limit_per_ip 20;<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0limit_req zone=req_limit_per_ip burst=20 nodelay;<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">}\n<\/span>\n<em><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u0442\u0435\u043b\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0431\u0443\u0444\u0435\u0440\u0430, \u0442\u043e \u043f\u043e\u043b\u043d\u043e\u0435 (\u0438\u043b\u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0435) \u0442\u0435\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b\n<\/span><\/em><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">client_body_buffer_size\u00a0 128k;\n<\/span>\n<em><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u0443\u0444\u0435\u0440\u0430 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/span><\/em>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">client_header_buffer_size 3m;\n<\/span>\n<em><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u0437 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/span><\/em>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">large_client_header_buffers 4 256k;\n<\/span>\n<em><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0442\u0435\u043b\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/span><\/em>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">client_body_timeout\u00a0\u00a0 3m;\n<\/span>\n<em><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"># \u043a\u0430\u043a \u0434\u043e\u043b\u0433\u043e \u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u0430<\/span><\/em>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">client_header_timeout 3m;<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">...<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">}<\/span><\/pre>\n<h2 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0423\u043b\u0443\u0447\u0448\u0430\u0435\u043c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c<\/span><\/h2>\n<div><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0430\u0448 NGINX \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u0441\u0435\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. \u041e\u043d\u0438 \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u0430\u0442\u0430\u043a\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043b\u0438\u043a\u043e\u0432, \u043c\u0435\u0436\u0441\u0430\u0439\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0430\u0442\u0430\u043a\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u0434\u0430.<\/span><\/div>\n<div>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">http {<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">...<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0 <\/span><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">add_header X-Frame-Options \"SAMEORIGIN\" always;<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0add_header X-XSS-Protection \"1; mode=block\" always;<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0add_header X-Content-Type-Options \"nosniff\" always;<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0add_header Referrer-Policy \"no-referrer-when-downgrade\" always;<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0add_header Content-Security-Policy \"default-src * data: 'unsafe-eval' 'unsafe-inline'\" always;<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0add_header Strict-Transport-Security \"max-age=31536000; includeSubDomains; preload\" always;<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">...<\/span>\n<span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">}<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 worker_processes \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 master\u00a0\u0438 worker \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 Nginx \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u00abnginx \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u0438\u043d master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 &#8211; \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b. Worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. Nginx \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445 \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u0435 \u043e\u0442 \u041e\u0421 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 \u00bb. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, worker_processes [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[95],"class_list":["post-7715","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers-ru","tag-nginx"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 master\u00a0\u0438 worker \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 Nginx \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u00abnginx \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u0438\u043d master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 master\u00a0\u0438 worker \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 Nginx \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u00abnginx \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u0438\u043d master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-25T11:59:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-17T14:51:35+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX\",\"datePublished\":\"2020-02-25T11:59:20+00:00\",\"dateModified\":\"2023-10-17T14:51:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/\"},\"wordCount\":335,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/#organization\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png\",\"keywords\":[\"Nginx\"],\"articleSection\":[\"02. \u0421\u0435\u0440\u0432\u0435\u0440\u044b\"],\"inLanguage\":\"ru\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/\",\"url\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/\",\"name\":\"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png\",\"datePublished\":\"2020-02-25T11:59:20+00:00\",\"dateModified\":\"2023-10-17T14:51:35+00:00\",\"description\":\"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 master\u00a0\u0438 worker \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 Nginx \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u00abnginx \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u0438\u043d master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#breadcrumb\"},\"inLanguage\":\"ru\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ru\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#primaryimage\",\"url\":\"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png\",\"contentUrl\":\"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/ru\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#website\",\"url\":\"https:\/\/unihost.com\/help\/ru\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/ru\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/ru\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/ru\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX - Unihost.FAQ","description":"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 master\u00a0\u0438 worker \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 Nginx \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u00abnginx \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u0438\u043d master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/","og_locale":"ru_RU","og_type":"article","og_title":"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX - Unihost.FAQ","og_description":"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 master\u00a0\u0438 worker \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 Nginx \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u00abnginx \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u0438\u043d master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432","og_url":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2020-02-25T11:59:20+00:00","article_modified_time":"2023-10-17T14:51:35+00:00","og_image":[{"url":"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png","type":"","width":"","height":""}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX","datePublished":"2020-02-25T11:59:20+00:00","dateModified":"2023-10-17T14:51:35+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/"},"wordCount":335,"publisher":{"@id":"https:\/\/unihost.com\/help\/ru\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#primaryimage"},"thumbnailUrl":"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png","keywords":["Nginx"],"articleSection":["02. \u0421\u0435\u0440\u0432\u0435\u0440\u044b"],"inLanguage":"ru"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/","url":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/","name":"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/ru\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#primaryimage"},"thumbnailUrl":"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png","datePublished":"2020-02-25T11:59:20+00:00","dateModified":"2023-10-17T14:51:35+00:00","description":"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 master\u00a0\u0438 worker \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 Nginx \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u00abnginx \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u0438\u043d master\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e worker\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#breadcrumb"},"inLanguage":"ru","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/"]}]},{"@type":"ImageObject","inLanguage":"ru","@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#primaryimage","url":"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png","contentUrl":"http:\/\/unihost.com\/help\/wp-content\/uploads\/NGINX-logo.png"},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/ru\/tuning-nginx-for-performance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/ru\/"},{"@type":"ListItem","position":3,"name":"\u0422\u044e\u043d\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 NGINX"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/ru\/#website","url":"https:\/\/unihost.com\/help\/ru\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/ru\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/ru\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/ru\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/ru\/","logo":{"@type":"ImageObject","inLanguage":"ru","@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"ru","@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/ru\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/posts\/7715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/comments?post=7715"}],"version-history":[{"count":4,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/posts\/7715\/revisions"}],"predecessor-version":[{"id":16396,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/posts\/7715\/revisions\/16396"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/media?parent=7715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/categories?post=7715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/tags?post=7715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}