{"id":294172,"date":"2019-09-02T21:00:11","date_gmt":"2019-09-02T21:00:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=294172"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=294172","title":{"rendered":"\u041a\u043e\u0433\u0434\u0430 &#8216;a&#8217; \u043d\u0435 \u0440\u0430\u0432\u043d\u043e &#8216;\u0430&#8217;. \u041f\u043e \u0441\u043b\u0435\u0434\u0430\u043c \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0437\u043b\u043e\u043c\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041f\u0440\u0435\u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0435\u0439\u0448\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0441 \u043e\u0434\u043d\u0438\u043c \u043c\u043e\u0438\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u043c. \u041d\u043e \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0439 \u0434\u043b\u044f \u041c\u0438\u0445\u0430\u0438\u043b\u0430 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0434\u043b\u044f \u043c\u0435\u043d\u044f.<\/p>\n<p>  \u041d\u0430\u0434\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438\u044f\u0442\u0435\u043b\u044c \u043c\u043e\u0439 \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 <i>UNIX<\/i>-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c: \u043c\u043e\u0436\u0435\u0442 \u0441\u0430\u043c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <i>mysql<\/i>, <i>php<\/i> \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <i>nginx<\/i>.<br \/>  \u0418 \u0435\u0441\u0442\u044c \u0443 \u043d\u0435\u0433\u043e \u0434\u0435\u0441\u044f\u0442\u043e\u043a-\u043f\u043e\u043b\u0442\u043e\u0440\u0430 \u0441\u0430\u0439\u0442\u043e\u0432 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c.<\/p>\n<p>  \u041e\u0434\u0438\u043d \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0439 \u0431\u0435\u043d\u0437\u043e\u043f\u0438\u043b\u0430\u043c \u043f\u043b\u043e\u0442\u043d\u0435\u043d\u044c\u043a\u043e \u0441\u0438\u0434\u0438\u0442 \u0432 \u0422\u041e\u041fe \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u043e\u0432. \u0421\u0430\u0439\u0442 \u044d\u0442\u043e\u0442 \u2014 \u043d\u0435\u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0431\u0437\u043e\u0440\u043d\u0438\u043a, \u043d\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043f\u0435\u0440\u0435\u043a \u0433\u043e\u0440\u043b\u0430 \u0438 \u043f\u043e\u0432\u0430\u0434\u0438\u043b\u0438\u0441\u044c \u0435\u0433\u043e \u0430\u0442\u0430\u043a\u043e\u0432\u0430\u0442\u044c. \u0422\u043e <i>DDoS<\/i>, \u0442\u043e \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441, \u0442\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u043f\u0438\u0448\u0443\u0442 \u043d\u0435\u043f\u043e\u0442\u0440\u0435\u0431\u043d\u044b\u0435 \u0438 \u0448\u043b\u044e\u0442 \u0430\u0431\u0443\u0437\u044b \u043d\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0438 \u0432 \u0420\u041a\u041d. <br \/>  \u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0432\u0441\u0451 \u0441\u0442\u0438\u0445\u043b\u043e \u0438 \u044d\u0442\u043e \u0437\u0430\u0442\u0438\u0448\u044c\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435 \u043a \u0434\u043e\u0431\u0440\u0443, \u0430 \u0441\u0430\u0439\u0442 \u043d\u0430\u0447\u0430\u043b \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043f\u043e\u043a\u0438\u0434\u0430\u0442\u044c \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432\u044b\u0434\u0430\u0447\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/528\/5d5\/582\/5285d55827ddf5cb5705b364a417828f.png\" alt=\"image\"><\/p>\n<p>  \u0422\u043e \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u0441\u043a\u0430\u0437\u043a\u0430, \u0434\u0430\u043b\u044c\u0448\u0435 \u0441\u0430\u043c\u0430 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u0430\u044f \u0431\u0430\u0439\u043a\u0430.<\/p>\n<p>  \u0412\u0440\u0435\u043c\u044f \u0431\u043b\u0438\u0437\u0438\u043b\u043e\u0441\u044c \u043a\u043e \u0441\u043d\u0443 \u043a\u043e\u0433\u0434\u0430 \u0440\u0430\u0437\u0434\u0430\u043b\u0441\u044f \u0437\u0432\u043e\u043d\u043e\u043a \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430: \u00ab\u0421\u0430\u043d\u044c, \u0442\u044b \u043d\u0435 \u0433\u043b\u044f\u043d\u0435\u0448\u044c \u043c\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440? \u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044f \u0445\u0430\u043a\u043d\u0443\u043b\u0438, \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435 \u043c\u043e\u0433\u0443, \u043d\u043e \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u043a\u0438\u0434\u0430\u0435\u0442 \u0443\u0436\u0435 \u0442\u0440\u0435\u0442\u044c\u044e \u043d\u0435\u0434\u0435\u043b\u044e. \u041c\u043e\u0436\u0435\u0442 \u043c\u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0440\u0430 \u043b\u0435\u0447\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043f\u0430\u0440\u0430\u043d\u043e\u0439\u0438?\u00bb<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0448\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0441\u043e\u0432\u043e\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043a\u0440\u0430\u0442\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0442\u0430\u043a:<\/p>\n<ul>\n<li>\u043f\u043e\u0447\u0432\u0430 \u0434\u043b\u044f \u0432\u0437\u043b\u043e\u043c\u0430 \u0431\u044b\u043b\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043b\u043e\u0434\u043e\u0440\u043e\u0434\u043d\u043e\u0439;<\/li>\n<li>\u0432\u0437\u043b\u043e\u043c\u0449\u0438\u043a \u043c\u043e\u0433 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/li>\n<li>\u0430\u0442\u0430\u043a\u0430 (\u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0438\u043c\u0435\u043b\u0430 \u043c\u0435\u0441\u0442\u043e) \u0431\u044b\u043b\u0430 \u0446\u0435\u043b\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0430\u0439\u0442;<\/li>\n<li>\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u0438 \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0431\u044b\u043b \u043b\u0438 \u0444\u0430\u043a\u0442 \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f;<\/li>\n<li>\u0432\u0437\u043b\u043e\u043c \u043d\u0435 \u043c\u043e\u0433 \u043a\u043e\u0441\u043d\u0443\u0442\u044c\u0441\u044f \u043a\u043e\u0434\u0430 \u0441\u0430\u0439\u0442\u0430 \u0438 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445.<\/li>\n<\/ul>\n<p>  \u041a\u0430\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/f7f\/a85\/93d\/f7fa8593d835c577dd321eec9e30e2e4.png\" alt=\"image\"><\/p>\n<p>  \u0412 \u043c\u0438\u0440 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u043b\u044b\u0439 IP \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430. \u041c\u0435\u0436\u0434\u0443 \u0431\u0430\u043a\u0435\u043d\u0434\u0430\u043c\u0438 \u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u043e\u043c \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u043c\u0435\u043d\u0430 \u043a\u0440\u043e\u043c\u0435 http(s), \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438\/\u043f\u0430\u0440\u043e\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435, \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u043d\u0435 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u043b\u0438\u0441\u044c. \u041d\u0430 \u0441\u0435\u0440\u044b\u0445 \u0430\u0434\u0440\u0435\u0441\u0430\u0445 \u0432\u0441\u0435 \u043f\u043e\u0440\u0442\u044b \u043a\u0440\u043e\u043c\u0435 80\/443 \u0437\u0430\u043a\u0440\u044b\u0442\u044b. \u0411\u0435\u043b\u044b\u0435 IP \u0431\u0430\u043a\u0435\u043d\u0434\u043e\u0432 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0443\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u041c\u0438\u0445\u0430\u0438\u043b \u0432\u0441\u0435\u0446\u0435\u043b\u043e \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u0442. <\/p>\n<p>  \u041d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 <i>Debian 9<\/i> \u0438 \u043a \u043c\u043e\u043c\u0435\u043d\u0442\u0443 \u0437\u0432\u043e\u043d\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043e\u0442 \u043c\u0438\u0440\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u043c firewall&#8217;\u043e\u043c \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430.<\/p>\n<p>  \u00abOk, \u0434\u0430\u0432\u0430\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u044b, \u2014 \u0440\u0435\u0448\u0430\u044e \u043e\u0442\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u043e\u043d \u043d\u0430 \u0447\u0430\u0441\u043e\u043a. \u2014 \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u044e \u0441\u0432\u043e\u0438\u043c \u0433\u043b\u0430\u0437\u043e\u043c\u00bb.<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435:<\/p>\n<pre><code class=\"plaintext\">$ grep -F PRETTY_NAME \/etc\/*releas* PRETTY_NAME=\"Debian GNU\/Linux 9 (stretch)\" $ `echo $SHELL` --version GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu) $ nginx -v nginx version: nginx\/1.10.3 $ gdb --version GNU gdb (Debian 8.2.1-2) 8.2.1 <\/code><\/pre>\n<p>  <\/p>\n<h2>\u0412 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0433\u043e \u0432\u0437\u043b\u043e\u043c\u0430<\/h2>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u0441\u0435\u0440\u0432\u0435\u0440, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432 <i>rescue-mode<\/i>. \u041c\u043e\u043d\u0442\u0438\u0440\u0443\u044e \u0434\u0438\u0441\u043a\u0438, \u043f\u0440\u043e\u043b\u0438\u0441\u0442\u044b\u0432\u0430\u044e <i>auth-<\/i>\u043b\u043e\u0433\u0438, <i>history<\/i>, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u043b\u043e\u0433\u0438 \u0438 \u0442.\u043f., \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0434\u0430\u0442\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432, \u0445\u043e\u0442\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0437\u043b\u043e\u043c\u0449\u0438\u043a \u00ab\u043f\u043e\u0434\u043c\u0435\u043b\u00bb \u0431\u044b \u0437\u0430 \u0441\u043e\u0431\u043e\u0439, \u0434\u0430 \u0438 \u041c\u0438\u0448\u0430 \u0443\u0436\u0435 \u0437\u043d\u0430\u0442\u043d\u043e \u00ab\u043d\u0430\u0442\u043e\u043f\u0442\u0430\u043b\u00bb \u043f\u043e\u043a\u0430 \u0438\u0441\u043a\u0430\u043b \u0441\u0430\u043c.<\/p>\n<p>  \u0421\u0442\u0430\u0440\u0442\u0443\u044e \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043e\u0441\u043e\u0431\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u044f \u0447\u0442\u043e \u0438\u0441\u043a\u0430\u0442\u044c, \u0438\u0437\u0443\u0447\u0430\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0438. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 <i>nginx<\/i> \u0442\u0430\u043a \u043a\u0430\u043a, \u0432 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e, \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u043a\u0440\u043e\u043c\u0435 \u043d\u0435\u0433\u043e \u0438 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e.<br \/>  \u041a\u043e\u043d\u0444\u0438\u0433\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435, \u0445\u043e\u0440\u043e\u0448\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b\u0435 \u0432 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432, \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e \u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u043e <i>cat&#8217;<\/i>\u043e\u043c \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u0412\u0440\u043e\u0434\u0435 \u0432\u0441\u0451 \u0447\u0438\u0441\u0442\u043e, \u043d\u043e \u043c\u0430\u043b\u043e-\u043b\u0438 \u0443\u043f\u0443\u0441\u0442\u0438\u043b \u043a\u0430\u043a\u043e\u0439-\u0442\u043e <i>include<\/i>, \u0441\u0434\u0435\u043b\u0430\u044e-\u043a\u0430 \u044f \u043f\u043e\u043b\u043d\u044b\u0439 \u043b\u0438\u0441\u0442\u0438\u043d\u0433:<\/p>\n<pre><code class=\"plaintext\">$ nginx -T nginx: the configuration file \/usr\/local\/etc\/nginx\/nginx.conf syntax is ok nginx: configuration file \/usr\/local\/etc\/nginx\/nginx.conf test is successful <\/code><\/pre>\n<p>  \u041d\u0435 \u043f\u043e\u043d\u044f\u043b: \u00ab\u0413\u0434\u0435 \u043b\u0438\u0441\u0442\u0438\u043d\u0433-\u0442\u043e?\u00bb<\/p>\n<pre><code class=\"plaintext\">$ nginx -V nginx version: nginx\/1.10.3 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2' --with-ld-opt='-Wl,-z,relro -Wl,-z,now' --prefix=\/usr\/share\/nginx --conf-path=\/etc\/nginx\/nginx.conf --http-log-path=\/var\/log\/nginx\/access.log --error-log-path=\/var\/log\/nginx\/error.log --lock-path=\/var\/lock\/nginx.lock --pid-path=\/run\/nginx.pid --modules-path=\/usr\/lib\/nginx\/modules --http-client-body-temp-path=\/var\/lib\/nginx\/body --http-fastcgi-temp-path=\/var\/lib\/nginx\/fastcgi --http-proxy-temp-path=\/var\/lib\/nginx\/proxy --http-scgi-temp-path=\/var\/lib\/nginx\/scgi --http-uwsgi-temp-path=\/var\/lib\/nginx\/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_sub_module --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module <\/code><\/pre>\n<p>  \u041a \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u043e \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u043e\u0439: \u00ab\u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a\u0430\u044f \u0434\u0440\u0435\u0432\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f nginx?\u00bb<\/p>\n<p>  \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0441\u0432\u0435\u0436\u0435\u0435:<\/p>\n<pre><code class=\"plaintext\">$ dpkg -l nginx | grep \"[n]ginx\" ii  nginx          1.14.2-2+deb10u1 all          small, powerful, scalable web\/proxy server <\/code><\/pre>\n<p>  \u0417\u0432\u043e\u043d\u044e:<br \/>   \u2014 \u041c\u0438\u0448, \u0442\u044b \u0437\u0430\u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u043b <i>nginx<\/i>?<br \/>   \u2014 \u041e\u043a\u0441\u0442\u0438\u0441\u044c, \u044f \u0434\u0430\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u044e \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c!<br \/>   \u2014 Ok, \u043d\u0443, \u0441\u043f\u0438\u2026<\/p>\n<p>  <i>Nginx<\/i> \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u043d \u0438 \u0432\u044b\u0432\u043e\u0434 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0430 \u043f\u043e &#171;-T&#187; \u0441\u043a\u0440\u044b\u0442 \u043d\u0435\u0441\u043f\u0440\u043e\u0441\u0442\u0430. \u0421\u043e\u043c\u043d\u0435\u043d\u0438\u0439 \u0432\u043e \u0432\u0437\u043b\u043e\u043c\u0435 \u0443\u0436\u0435 \u043d\u0435\u0442 \u0438 \u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0438 (\u0440\u0430\u0437 \u0443\u0436 \u041c\u0438\u0448\u0430 \u0432\u0441\u0451-\u0440\u0430\u0432\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u043e\u0432\u044b\u043c) \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0439.<\/p>\n<p>  \u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0440\u0430\u0437 \u0443\u0436 \u043d\u0435\u043a\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043f\u0440\u0430\u0432\u0430 <i>root<\/i>&#8216;\u0430, \u0442\u043e \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e <i>system reinstall<\/i>, \u0430 \u0438\u0441\u043a\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0431\u044b\u043b\u043e \u043d\u0430\u0431\u0435\u0434\u043e\u043a\u0443\u0440\u0435\u043d\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u043d\u043e \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u043e \u043f\u043e\u0431\u0435\u0434\u0438\u043b\u043e \u0441\u043e\u043d. \u041a\u0430\u043a \u0436\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e \u043e\u0442 \u043d\u0430\u0441 \u0445\u043e\u0442\u0435\u043b\u0438 \u0441\u043a\u0440\u044b\u0442\u044c?<\/p>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0442\u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"plaintext\">$ strace nginx -T <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c, \u0432 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0435 \u044f\u0432\u043d\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a \u0430-\u043b\u044f <\/p>\n<pre><code class=\"plaintext\">write(1, \"\/etc\/nginx\/nginx.conf\", 21\/etc\/nginx\/nginx.conf)   = 21 write(1, \"... write(1, \"\\n\", 1 <\/code><\/pre>\n<p>  \u0420\u0430\u0434\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u044b<\/p>\n<pre><code class=\"plaintext\">$ strace nginx -T 2&gt;&amp;1 | wc -l 264 $ strace nginx -t 2&gt;&amp;1 | wc -l 264 <\/code><\/pre>\n<p>  \u0414\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430 <i>\/src\/core\/nginx.c<\/i><\/p>\n<pre><code class=\"cpp\">            case 't':                 ngx_test_config = 1;                 break;              case 'T':                 ngx_test_config = 1;                 ngx_dump_config = 1;                 break; <\/code><\/pre>\n<p>  \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u043a \u0432\u0438\u0434\u0443:<\/p>\n<pre><code class=\"cpp\">            case 't':                 ngx_test_config = 1;                 break;              case 'T':                 ngx_test_config = 1;                 \/\/ngx_dump_config = 1;                 break; <\/code><\/pre>\n<p>  \u0438\u043b\u0438<\/p>\n<pre><code class=\"cpp\">            case 't':                 ngx_test_config = 1;                 break;              case 'T':                 ngx_test_config = 1;                 ngx_dump_config = 0;                 break; <\/code><\/pre>\n<p>  \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u043f\u043e &#171;-T&#187; \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f.<\/p>\n<h2>\u041d\u043e \u043a\u0430\u043a \u0436\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430\u0448 \u043a\u043e\u043d\u0444\u0438\u0433?<\/h2>\n<p>  \u0415\u0441\u043b\u0438 \u043c\u043e\u044f \u043c\u044b\u0441\u043b\u044c \u0432\u0435\u0440\u043d\u0430 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <i>ngx_dump_config<\/i> \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0451 c \u043f\u043e\u043c\u043e\u0449\u044c\u044e <i>gdb<\/i>, \u0431\u043b\u0430\u0433\u043e \u043a\u043b\u044e\u0447\u0438\u043a <i>&#8212;with-cc-opt<\/i> <i>-g<\/i> \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0438 \u043d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f <i>-O2<\/i> \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u0435\u0442. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0440\u0430\u0437 \u044f \u043d\u0435 \u0437\u043d\u0430\u044e \u043a\u0430\u043a <i>ngx_dump_config<\/i> \u043c\u043e\u0433\u043b\u0430 \u0431\u044b\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0432 <i>case &#8216;T&#8217;:<\/i>, \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0431\u043b\u043e\u043a, \u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <i>case &#8216;t&#8217;:<\/i><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0447\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c &#8216;-t&#8217; \u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 &#8216;-T&#8217;<\/b><\/p>\n<div class=\"spoiler_text\">\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0431\u043b\u043e\u043a\u0430 <i>if(ngx_dump_config)<\/i> \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 <i>if(ngx_test_config)<\/i>:  <\/p>\n<pre><code class=\"cpp\">    if (ngx_test_config) {         if (!ngx_quiet_mode) {             ngx_log_stderr(0, \"configuration file %s test is successful\",                            cycle-&gt;conf_file.data);         }          if (ngx_dump_config) {             cd = cycle-&gt;config_dump.elts;              for (i = 0; i &lt; cycle-&gt;config_dump.nelts; i++) {                  ngx_write_stdout(\"# configuration file \");                 (void) ngx_write_fd(ngx_stdout, cd[i].name.data,                                     cd[i].name.len);                 ngx_write_stdout(\":\" NGX_LINEFEED);                  b = cd[i].buffer;                  (void) ngx_write_fd(ngx_stdout, b-&gt;pos, b-&gt;last - b-&gt;pos);                 ngx_write_stdout(NGX_LINEFEED);             }         }          return 0;     } <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u043b\u0438 \u043a\u043e\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u0432 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u0430 \u043d\u0435 \u0432 <i>case &#8216;T&#8217;:<\/i>, \u0442\u043e \u043c\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442.  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 nginx.conf<\/b><\/p>\n<div class=\"spoiler_text\">\u0423\u0436\u0435 \u0440\u0435\u0448\u0438\u0432 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043e\u043f\u044b\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0435\u043c \u0431\u044b\u043b\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0437\u043b\u043e\u0432\u0440\u0435\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 <i>nginx<\/i> \u0432\u0438\u0434\u0430:<\/p>\n<pre><code class=\"nginx\">events { }  http { \tinclude \/etc\/nginx\/sites-enabled\/*; } <\/code><\/pre>\n<p>  \u0415\u0433\u043e \u0438 \u0431\u0443\u0434\u0435\u043c \u0434\u043b\u044f \u043a\u0440\u0430\u0442\u043a\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435.  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">$ gdb --silent --args nginx -t Reading symbols from nginx...done. (gdb) break main Breakpoint 1 at 0x1f390: file src\/core\/nginx.c, line 188. (gdb) run Starting program: nginx -t [Thread debugging using libthread_db enabled] Using host libthread_db library \"\/lib\/x86_64-linux-gnu\/libthread_db.so.1\".  Breakpoint 1, main (argc=2, argv=0x7fffffffebc8) at src\/core\/nginx.c:188 188     src\/core\/nginx.c: No such file or directory. (gdb) print ngx_dump_config=1 $1 = 1 (gdb) continue Continuing. nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok nginx: configuration file \/etc\/nginx\/nginx.conf test is successful # configuration file \/etc\/nginx\/nginx.conf: events { }  http { map $http_user_agent $sign_user_agent { \"~*yandex.com\/bots\" 1; \"~*www.google.com\/bot.html\" 1; default 0; }  map $uri $sign_uri { \"~*\/wp-\" 1; default 0; }  map \u043e:$sign_user_agent:$sign_uri $sign_o { \u043e:1:0 o; default \u043e; }  map \u0430:$sign_user_agent:$sign_uri $sign_a { \u0430:1:0 a; default \u0430; }  sub_filter_once off; sub_filter '\u043e' $sign_o; sub_filter '\u0430' $sign_a;          include \/etc\/nginx\/sites-enabled\/*; } # configuration file \/etc\/nginx\/sites-enabled\/default:  [Inferior 1 (process 32581) exited normally] (gdb) quit <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e \u0448\u0430\u0433\u0430\u043c:<\/p>\n<ul>\n<li>\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u043e\u0447\u043a\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>main()<\/i><\/li>\n<li>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443<\/li>\n<li>\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0449\u0435\u0439 \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 <i>ngx_dump_config=1<\/i><\/li>\n<li>\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c\/\u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443<\/li>\n<\/ul>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043d\u0430\u0448\u0435\u0433\u043e, \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u0438\u0437 \u043d\u0435\u0433\u043e \u043f\u0430\u0440\u0430\u0437\u0438\u0442\u043d\u044b\u0439 \u043a\u0443\u0441\u043e\u043a:<\/p>\n<pre><code class=\"nginx\">map $http_user_agent $sign_user_agent { \"~*yandex.com\/bots\" 1; \"~*www.google.com\/bot.html\" 1; default 0; }  map $uri $sign_uri { \"~*\/wp-\" 1; default 0; }  map \u043e:$sign_user_agent:$sign_uri $sign_o { \u043e:1:0 o; default \u043e; }  map \u0430:$sign_user_agent:$sign_uri $sign_a { \u0430:1:0 a; default \u0430; }  sub_filter_once off; sub_filter '\u043e' $sign_o; sub_filter '\u0430' $sign_a; <\/code><\/pre>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0447\u0442\u043e \u0436\u0435 \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p>  \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f <i>User-Agent<\/i>&#8216;\u044b yandex\/google:<\/p>\n<pre><code class=\"nginx\">map $http_user_agent $sign_user_agent { \"~*yandex.com\/bots\" 1; \"~*www.google.com\/bot.html\" 1; default 0; } <\/code><\/pre>\n<p>  \u0418\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b <i>wordpress<\/i>:<\/p>\n<pre><code class=\"nginx\">map $uri $sign_uri { \"~*\/wp-\" 1; default 0; } <\/code><\/pre>\n<p>  \u0418 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u043e\u043f\u0430\u043b \u043f\u043e\u0434 \u043e\u0431\u0430 \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f <\/p>\n<pre><code class=\"nginx\">map \u043e:$sign_user_agent:$sign_uri $sign_o { \u043e:1:0 o; default \u043e; }  map \u0430:$sign_user_agent:$sign_uri $sign_a { \u0430:1:0 a; default \u0430; } <\/code><\/pre>\n<p>  \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 <i>html<\/i>-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f <i>&#8216;\u043e&#8217;<\/i> \u043d\u0430 <i>&#8216;o&#8217;<\/i> \u0438 <i>&#8216;\u0430&#8217;<\/i> \u043d\u0430 <i>&#8216;a&#8217;<\/i>:<\/p>\n<pre><code class=\"nginx\">sub_filter_once off; sub_filter '\u043e' $sign_o; sub_filter '\u0430' $sign_a; <\/code><\/pre>\n<p>  \u0418\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a, \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0447\u0442\u043e <i>&#8216;\u0430&#8217; != &#8216;a&#8217;<\/i> \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 <i>&#8216;\u043e&#8217; != &#8216;o&#8217;<\/i>:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/528\/5d5\/582\/5285d55827ddf5cb5705b364a417828f.png\" alt=\"image\"><\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0431\u043e\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e 100%-\u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043c\u0443\u0441\u043e\u0440 \u0440\u0430\u0437\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u043c\u0438 <i>&#8216;a&#8217;<\/i> \u0438 <i>&#8216;o&#8217;<\/i>. \u041d\u0435 \u0431\u0435\u0440\u0443\u0441\u044c \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 SEO, \u043d\u043e \u0432\u0440\u044f\u0434 \u043b\u0438 \u0442\u0430\u043a\u0430\u044f \u0431\u0443\u043a\u0432\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0448\u0430\u043d\u0438\u043d\u0430 \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u043e \u0441\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0445 \u0432 \u0432\u044b\u0434\u0430\u0447\u0435.<\/p>\n<p>  \u0427\u0442\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0440\u0435\u0431\u044f\u0442\u0430 \u0441 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0435\u0439.<\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p>  <a href=\"https:\/\/www.opennet.ru\/docs\/RUS\/gdb\/\">\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e GDB<\/a><br \/>  <a href=\"https:\/\/linux.die.net\/man\/1\/gdb\">gdb(1) \u2014 Linux man page<\/a><br \/>  <a href=\"https:\/\/linux.die.net\/man\/1\/strace\">strace(1) \u2014 Linux man page<\/a><br \/>  <a href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_sub_module.html\">Nginx \u2014 Module ngx_http_sub_module<\/a><br \/>  <a href=\"https:\/\/opilah.com\">\u041e \u043f\u0438\u043b\u0430\u0445, \u0431\u0435\u043d\u0437\u043e\u043f\u0438\u043b\u0430\u0445 \u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043f\u0438\u043b\u0430\u0445<\/a><\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/465355\/\"> https:\/\/habr.com\/ru\/post\/465355\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041f\u0440\u0435\u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0435\u0439\u0448\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0441 \u043e\u0434\u043d\u0438\u043c \u043c\u043e\u0438\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u043c. \u041d\u043e \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0439 \u0434\u043b\u044f \u041c\u0438\u0445\u0430\u0438\u043b\u0430 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0434\u043b\u044f \u043c\u0435\u043d\u044f.<\/p>\n<p>  \u041d\u0430\u0434\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438\u044f\u0442\u0435\u043b\u044c \u043c\u043e\u0439 \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 <i>UNIX<\/i>-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c: \u043c\u043e\u0436\u0435\u0442 \u0441\u0430\u043c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <i>mysql<\/i>, <i>php<\/i> \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <i>nginx<\/i>.<br \/>  \u0418 \u0435\u0441\u0442\u044c \u0443 \u043d\u0435\u0433\u043e \u0434\u0435\u0441\u044f\u0442\u043e\u043a-\u043f\u043e\u043b\u0442\u043e\u0440\u0430 \u0441\u0430\u0439\u0442\u043e\u0432 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c.<\/p>\n<p>  \u041e\u0434\u0438\u043d \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0439 \u0431\u0435\u043d\u0437\u043e\u043f\u0438\u043b\u0430\u043c \u043f\u043b\u043e\u0442\u043d\u0435\u043d\u044c\u043a\u043e \u0441\u0438\u0434\u0438\u0442 \u0432 \u0422\u041e\u041fe \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u043e\u0432. \u0421\u0430\u0439\u0442 \u044d\u0442\u043e\u0442 \u2014 \u043d\u0435\u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0431\u0437\u043e\u0440\u043d\u0438\u043a, \u043d\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043f\u0435\u0440\u0435\u043a \u0433\u043e\u0440\u043b\u0430 \u0438 \u043f\u043e\u0432\u0430\u0434\u0438\u043b\u0438\u0441\u044c \u0435\u0433\u043e \u0430\u0442\u0430\u043a\u043e\u0432\u0430\u0442\u044c. \u0422\u043e <i>DDoS<\/i>, \u0442\u043e \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441, \u0442\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u043f\u0438\u0448\u0443\u0442 \u043d\u0435\u043f\u043e\u0442\u0440\u0435\u0431\u043d\u044b\u0435 \u0438 \u0448\u043b\u044e\u0442 \u0430\u0431\u0443\u0437\u044b \u043d\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0438 \u0432 \u0420\u041a\u041d. <br \/>  \u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0432\u0441\u0451 \u0441\u0442\u0438\u0445\u043b\u043e \u0438 \u044d\u0442\u043e \u0437\u0430\u0442\u0438\u0448\u044c\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435 \u043a \u0434\u043e\u0431\u0440\u0443, \u0430 \u0441\u0430\u0439\u0442 \u043d\u0430\u0447\u0430\u043b \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043f\u043e\u043a\u0438\u0434\u0430\u0442\u044c \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432\u044b\u0434\u0430\u0447\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/528\/5d5\/582\/5285d55827ddf5cb5705b364a417828f.png\" alt=\"image\"><\/p>\n<p>  \u0422\u043e \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u0441\u043a\u0430\u0437\u043a\u0430, \u0434\u0430\u043b\u044c\u0448\u0435 \u0441\u0430\u043c\u0430 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u0430\u044f \u0431\u0430\u0439\u043a\u0430.<\/p>\n<p>  \u0412\u0440\u0435\u043c\u044f \u0431\u043b\u0438\u0437\u0438\u043b\u043e\u0441\u044c \u043a\u043e \u0441\u043d\u0443 \u043a\u043e\u0433\u0434\u0430 \u0440\u0430\u0437\u0434\u0430\u043b\u0441\u044f \u0437\u0432\u043e\u043d\u043e\u043a \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430: \u00ab\u0421\u0430\u043d\u044c, \u0442\u044b \u043d\u0435 \u0433\u043b\u044f\u043d\u0435\u0448\u044c \u043c\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440? \u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044f \u0445\u0430\u043a\u043d\u0443\u043b\u0438, \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435 \u043c\u043e\u0433\u0443, \u043d\u043e \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u043a\u0438\u0434\u0430\u0435\u0442 \u0443\u0436\u0435 \u0442\u0440\u0435\u0442\u044c\u044e \u043d\u0435\u0434\u0435\u043b\u044e. \u041c\u043e\u0436\u0435\u0442 \u043c\u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0440\u0430 \u043b\u0435\u0447\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043f\u0430\u0440\u0430\u043d\u043e\u0439\u0438?\u00bb  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-294172","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=294172"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294172\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}