{"id":321029,"date":"2021-04-07T09:00:46","date_gmt":"2021-04-07T09:00:46","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=321029"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=321029","title":{"rendered":"\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 ip, \u0447\u0442\u043e \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0430\u0439\u0442? \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c apache web server"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 <a href=\"https:\/\/habr.com\/ru\/post\/548372\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u044f \u043f\u0438\u0441\u0430\u043b, \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433. \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u043d\u0435\u0433\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439, \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0440\u0442:  <strong>\u0434\u043e\u043c\u0435\u043d.com:8080\/monitorix<\/strong><\/p>\n<p>\u0420\u0435\u0448\u0438\u043b \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0443\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <strong>monitorix.\u0434\u043e\u043c\u0435\u043d.com<\/strong><\/p>\n<p>\u0418 \u0442\u0443\u0442 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: <\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u044f \u0445\u043e\u0447\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0410-\u0437\u0430\u043f\u0438\u0441\u044c DNS &#8212; \u0442\u043e \u043c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 ip \u0430\u0434\u0440\u0435\u0441, \u0430 \u0430\u0440\u0435\u043d\u0434\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e ip \u0441\u0442\u043e\u0438\u0442 \u043b\u0438\u0448\u043d\u0438\u0445 \u0434\u0435\u043d\u0435\u0433<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u044f \u0434\u0435\u043b\u0430\u044e \u0447\u0435\u0440\u0435\u0437 redirect &#8212; \u0442\u043e \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 <strong>monitorix.\u0434\u043e\u043c\u0435\u043d.com<\/strong> &#8212; \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 <strong>\u0434\u043e\u043c\u0435\u043d.com:8080\/monitorix<\/strong> &#8212; \u0430 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u0436\u0435 \u0431\u044b\u0442\u044c? \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043d\u0430\u0448\u0451\u043b &#8212; \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u0430\u043c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u043e\u0439 \u0441\u0430\u0439\u0442.<\/p>\n<p>\u041a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f (\u0441\u0447\u0438\u0442\u0430\u0435\u043c, \u0447\u0442\u043e apache web server \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d):<\/p>\n<h2>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 A-\u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0410-\u0437\u0430\u043f\u0438\u0441\u044c.<\/p>\n<p>\u0410-\u0437\u0430\u043f\u0438\u0441\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0432\u0430\u0448 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0430\u0439\u0442 &#8212; \u043d\u0430 \u0442\u043e\u0442 ip \u0430\u0434\u0440\u0435\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 apache web server:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a49\/c32\/3ef\/a49c323ef52f75e3a01fcc01f75eb741.png\" width=\"2224\" height=\"128\"><figcaption><\/figcaption><\/figure>\n<h2>\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u0439 apache web server<\/h2>\n<p>\u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434,<\/p>\n<pre><code class=\"bash\">2enmod proxy   --\u0443 \u043c\u0435\u043d\u044f \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0431\u0435\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 a2enmod proxy_http a2enmod proxy_balancer a2enmod lbmethod_byrequests<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443,<\/p>\n<pre><code>systemctl restart apache2<\/code><\/pre>\n<h2>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0434\u043b\u044f \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u0430<\/h2>\n<p>\u041d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043f\u0430\u043f\u043a\u0443 <strong>etc\/apache2\/sites-available\/<\/strong>  \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u043d\u0435\u0439 \u0444\u0430\u0439\u043b \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u0430:<\/p>\n<details class=\"spoiler\">\n<summary>\u0424\u0430\u0439\u043b \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.\u0434\u043e\u043c\u0435\u043d.com.conf<\/summary>\n<div class=\"spoiler__content\">\n<p>&lt;VirtualHost *:80&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; ServerAdmin admin@\u0434\u043e\u043c\u0435\u043d.com<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; ServerName \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.\u0434\u043e\u043c\u0435\u043d.com<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; ServerAlias \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.\u0434\u043e\u043c\u0435\u043dcom<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; ProxyRequests Off<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; #ProxyPass \/ http:\/\/localhost:8080\/<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Location \/&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ProxyPreserveHost On<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ProxyPass http:\/\/\u0434\u043e\u043c\u0435\u043d.com:8080\/monitorix\/<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ProxyPassReverse http:\/\/\u0434\u043e\u043c\u0435\u043d.com:8080\/monitorix\/<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/Location&gt;<\/p>\n<p>&nbsp;&nbsp; &nbsp; # Uncomment the line below if your site uses SSL.<\/p>\n<p>&nbsp;&nbsp; &nbsp; #SSLProxyEngine On<\/p>\n<p>&lt;\/VirtualHost&gt;<\/p>\n<\/div>\n<\/details>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u0444\u0438\u0433 \u0432 apache web server:<\/p>\n<pre><code>a2ensite \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.\u0434\u043e\u043c\u0435\u043d.com.conf<\/code><\/pre>\n<p>\u0415\u0449\u0451 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c web \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<pre><code>systemctl restart apache2<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0432\u0430\u0448 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u043e\u0442\u043a\u0440\u044b\u043b\u0441\u044f \u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u043e\u0440\u0442\u0430 \u0442\u043e\u0433\u043e \u0436\u0435 ip \u0430\u0434\u0440\u0435\u0441\u0430, \u0447\u0442\u043e \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0430\u0439\u0442. \u0418 \u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u0430, \u0430 \u043d\u0435 \u043f\u043e\u0440\u0442\u0430 \u0441\u0430\u0439\u0442\u0430.<\/p>\n<\/div>\n<p> \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\/551122\/\"> https:\/\/habr.com\/ru\/post\/551122\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 <a href=\"https:\/\/habr.com\/ru\/post\/548372\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u044f \u043f\u0438\u0441\u0430\u043b, \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433. \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u043d\u0435\u0433\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439, \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0440\u0442:  <strong>\u0434\u043e\u043c\u0435\u043d.com:8080\/monitorix<\/strong><\/p>\n<p>\u0420\u0435\u0448\u0438\u043b \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0443\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <strong>monitorix.\u0434\u043e\u043c\u0435\u043d.com<\/strong><\/p>\n<p>\u0418 \u0442\u0443\u0442 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: <\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u044f \u0445\u043e\u0447\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0410-\u0437\u0430\u043f\u0438\u0441\u044c DNS &#8212; \u0442\u043e \u043c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 ip \u0430\u0434\u0440\u0435\u0441, \u0430 \u0430\u0440\u0435\u043d\u0434\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e ip \u0441\u0442\u043e\u0438\u0442 \u043b\u0438\u0448\u043d\u0438\u0445 \u0434\u0435\u043d\u0435\u0433<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u044f \u0434\u0435\u043b\u0430\u044e \u0447\u0435\u0440\u0435\u0437 redirect &#8212; \u0442\u043e \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 <strong>monitorix.\u0434\u043e\u043c\u0435\u043d.com<\/strong> &#8212; \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 <strong>\u0434\u043e\u043c\u0435\u043d.com:8080\/monitorix<\/strong> &#8212; \u0430 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u0436\u0435 \u0431\u044b\u0442\u044c? \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043d\u0430\u0448\u0451\u043b &#8212; \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u0430\u043c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u043e\u0439 \u0441\u0430\u0439\u0442.<\/p>\n<p>\u041a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f (\u0441\u0447\u0438\u0442\u0430\u0435\u043c, \u0447\u0442\u043e apache web server \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d):<\/p>\n<h2>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 A-\u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0410-\u0437\u0430\u043f\u0438\u0441\u044c.<\/p>\n<p>\u0410-\u0437\u0430\u043f\u0438\u0441\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0432\u0430\u0448 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0430\u0439\u0442 &#8212; \u043d\u0430 \u0442\u043e\u0442 ip \u0430\u0434\u0440\u0435\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 apache web server:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u0439 apache web server<\/h2>\n<p>\u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434,<\/p>\n<pre><code class=\"bash\">2enmod proxy   --\u0443 \u043c\u0435\u043d\u044f \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0431\u0435\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 a2enmod proxy_http a2enmod proxy_balancer a2enmod lbmethod_byrequests<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443,<\/p>\n<pre><code>systemctl restart apache2<\/code><\/pre>\n<h2>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0434\u043b\u044f \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u0430<\/h2>\n<p>\u041d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043f\u0430\u043f\u043a\u0443 <strong>etc\/apache2\/sites-available\/<\/strong>  \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u043d\u0435\u0439 \u0444\u0430\u0439\u043b \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u0430:<\/p>\n<details class=\"spoiler\">\n<summary>\u0424\u0430\u0439\u043b \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.\u0434\u043e\u043c\u0435\u043d.com.conf<\/summary>\n<div class=\"spoiler__content\">\n<p>&lt;VirtualHost *:80&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; ServerAdmin admin@\u0434\u043e\u043c\u0435\u043d.com<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; ServerName \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.\u0434\u043e\u043c\u0435\u043d.com<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; ServerAlias \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.\u0434\u043e\u043c\u0435\u043dcom<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; ProxyRequests Off<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; #ProxyPass \/ http:\/\/localhost:8080\/<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Location \/&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ProxyPreserveHost On<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ProxyPass http:\/\/\u0434\u043e\u043c\u0435\u043d.com:8080\/monitorix\/<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ProxyPassReverse http:\/\/\u0434\u043e\u043c\u0435\u043d.com:8080\/monitorix\/<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/Location&gt;<\/p>\n<p>&nbsp;&nbsp; &nbsp; # Uncomment the line below if your site uses SSL.<\/p>\n<p>&nbsp;&nbsp; &nbsp; #SSLProxyEngine On<\/p>\n<p>&lt;\/VirtualHost&gt;<\/p>\n<\/div>\n<\/details>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u0444\u0438\u0433 \u0432 apache web server:<\/p>\n<pre><code>a2ensite \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.\u0434\u043e\u043c\u0435\u043d.com.conf<\/code><\/pre>\n<p>\u0415\u0449\u0451 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c web \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<pre><code>systemctl restart apache2<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0432\u0430\u0448 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u043e\u0442\u043a\u0440\u044b\u043b\u0441\u044f \u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u043e\u0440\u0442\u0430 \u0442\u043e\u0433\u043e \u0436\u0435 ip \u0430\u0434\u0440\u0435\u0441\u0430, \u0447\u0442\u043e \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0430\u0439\u0442. \u0418 \u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u0430, \u0430 \u043d\u0435 \u043f\u043e\u0440\u0442\u0430 \u0441\u0430\u0439\u0442\u0430.<\/p>\n<\/div>\n<p> \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\/551122\/\"> https:\/\/habr.com\/ru\/post\/551122\/<\/a><br \/><\/br><\/br><\/div>\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-321029","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/321029","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=321029"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/321029\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=321029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=321029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=321029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}