{"id":370,"date":"2020-10-30T11:32:23","date_gmt":"2020-10-30T08:32:23","guid":{"rendered":"http:\/\/mamkinitshnik.ru\/?page_id=370"},"modified":"2020-10-30T17:35:54","modified_gmt":"2020-10-30T14:35:54","slug":"%d0%bf%d1%80%d0%be%d0%ba%d1%81%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5-%d1%80%d0%b5%d0%b0%d0%bb%d1%8c%d0%bd%d1%8b%d0%b9-ip","status":"publish","type":"page","link":"https:\/\/mamkinitshnik.ru\/?page_id=370","title":{"rendered":"\u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0420\u0415\u0410\u041b\u042c\u041d\u042b\u0419 IP"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"370\" class=\"elementor elementor-370\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3d6b74e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3d6b74e\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d2899df\" data-id=\"d2899df\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-962204f elementor-widget elementor-widget-text-editor\" data-id=\"962204f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u041a\u041e\u041d\u0424\u0410 \u044d\u043d\u0434\u0436\u0438\u043d\u043a\u0441\u0430<\/p><p>\u00a0<\/p><p>server {<\/p><p>listen 80;<\/p><p>server_name ********.ru;<\/p><p>\u00a0 \u00a0 \u00a0return 301 https:\/\/******.ru$request_uri;<\/p><p>}<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p>server {<\/p><p>\u00a0<\/p><p>listen 443;<\/p><p>\u00a0 \u00a0 server_name\u00a0<span style=\"font-family: var( --e-global-typography-text-font-family ); font-weight: var( --e-global-typography-text-font-weight ); background-color: inherit;\">********.ru;<\/span><\/p><p>\u00a0 \u00a0 ssl on;<\/p><p>\u00a0 \u00a0 ssl_certificate \/etc\/letsencrypt\/live\/********.ru;\/fullchain.pem; # managed by Certbot<\/p><p>\u00a0 \u00a0 ssl_certificate_key \/etc\/letsencrypt\/live\/********.ru;\/privkey.pem; # managed by Certbot<\/p><p><span style=\"font-family: var( --e-global-typography-text-font-family ); font-weight: var( --e-global-typography-text-font-weight ); background-color: inherit;\">\u00a0 \u00a0 ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # dont use SSLv3 ref: POODLE<\/span><\/p><p>\u00a0 \u00a0 access_log \/var\/log\/nginx\/********.ru;.log;<\/p><p>\u00a0 \u00a0 error_log \/var\/log\/nginx\/********.ru;-error.log;<\/p><p>\u00a0<\/p><p>location \/ {<\/p><p>\u00a0 \u00a0 proxy_pass http:\/\/10.168.20.44;<\/p><p>\u00a0 \u00a0 proxy_http_version 1.1;<\/p><p>\u00a0 \u00a0 proxy_set_header Upgrade $http_upgrade;<\/p><p>\u00a0 \u00a0 proxy_set_header Connection &#171;upgrade&#187;;<\/p><p>\u00a0 \u00a0 proxy_set_header Host $http_host;<\/p><p>\u00a0 \u00a0 proxy_set_header X-Real-IP $remote_addr;<\/p><p>\u00a0 \u00a0 proxy_set_header X-Forwarded-For $remote_addr;<\/p><p>#\u00a0 \u00a0 proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;<\/p><p>#\u00a0 \u00a0 proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;<\/p><p>\u00a0 \u00a0 proxy_set_header X-Forward-Proto http;<\/p><p>\u00a0 \u00a0 proxy_set_header X-Nginx-Proxy true;<\/p><p>\u00a0 \u00a0 proxy_redirect off;<\/p><p>\u00a0 \u00a0 proxy_set_header\u00a0 Scheme $scheme;<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p>#\u00a0 \u00a0 proxy_set_header Host $host;<\/p><p>#\u00a0 \u00a0 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<\/p><p>#\u00a0 \u00a0 proxy_set_header X-Real-IP $remote_addr;<\/p><p>#\u00a0 \u00a0 proxy_set_header X-Forwarded-Proto $scheme;<\/p><p>}<\/p><p>}<\/p><div>\u00a0<\/div><p>\u041d\u0430 \u0430\u043f\u0430\u0447\u0435<\/p><p>\u00a0<\/p><p>\u00a0<\/p><h3 style=\"margin-top: 24px; margin-bottom: 16px; font-size: 1.25em; font-weight: 600; line-height: 1.25; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\">Add apache remoteip mod with<\/h3><pre style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 16px; overflow-wrap: normal; padding: 16px; line-height: 1.45; background-color: var(--color-bg-tertiary); border-radius: 6px; color: #24292e;\"><code style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; padding: 0px; margin: 0px; background: initial; border-radius: 6px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; overflow-wrap: normal;\">a2enmod remoteip\n<\/code><\/pre><h3 style=\"margin-top: 24px; margin-bottom: 16px; font-size: 1.25em; font-weight: 600; line-height: 1.25; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\">create a new conf file for Apache<\/h3><pre style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 16px; overflow-wrap: normal; padding: 16px; line-height: 1.45; background-color: var(--color-bg-tertiary); border-radius: 6px; color: #24292e;\"><code style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; padding: 0px; margin: 0px; background: initial; border-radius: 6px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; overflow-wrap: normal;\">vim \/etc\/apache2\/conf-available\/remoteip.conf\n<\/code><\/pre><p style=\"margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\">and add<\/p><pre style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 16px; overflow-wrap: normal; padding: 16px; line-height: 1.45; background-color: var(--color-bg-tertiary); border-radius: 6px; color: #24292e;\"><code style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; padding: 0px; margin: 0px; background: initial; border-radius: 6px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; overflow-wrap: normal;\">RemoteIPHeader X-Forwarded-For\nRemoteIPTrustedProxy 127.0.0.1\n<\/code><\/pre><p style=\"margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\">Add active this conf with<\/p><pre style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 16px; overflow-wrap: normal; padding: 16px; line-height: 1.45; background-color: var(--color-bg-tertiary); border-radius: 6px; color: #24292e;\"><code style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; padding: 0px; margin: 0px; background: initial; border-radius: 6px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; overflow-wrap: normal;\">a2enconf remoteip\n<\/code><\/pre><h3 style=\"margin-top: 24px; margin-bottom: 16px; font-size: 1.25em; font-weight: 600; line-height: 1.25; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\">restart apache<\/h3><pre style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 16px; overflow-wrap: normal; padding: 16px; line-height: 1.45; background-color: var(--color-bg-tertiary); border-radius: 6px; color: #24292e;\"><code style=\"font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13.6px; padding: 0px; margin: 0px; background: initial; border-radius: 6px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; overflow-wrap: normal;\">service apache2 restart<\/code><\/pre><p>\u00a0<\/p><p>\u041a\u043e\u043d\u0444\u0438\u0433 \u0430\u043f\u0430\u0447\u0430<\/p><p>\u00a0<\/p><p>&lt;VirtualHost *:80&gt;<\/p><p>ServerAdmin admin@<span style=\"font-family: var( --e-global-typography-text-font-family ); font-weight: var( --e-global-typography-text-font-weight ); background-color: inherit;\">******.ru<\/span><\/p><p>ServerName\u00a0<span style=\"font-family: var( --e-global-typography-text-font-family ); font-weight: var( --e-global-typography-text-font-weight ); background-color: inherit;\">******.ru<\/span><\/p><p>ServerAlias www.<span style=\"font-family: var( --e-global-typography-text-font-family ); font-weight: var( --e-global-typography-text-font-weight ); background-color: inherit;\">******.ru<\/span><\/p><p>DocumentRoot \/var\/www\/*******<\/p><p><span style=\"font-family: var( --e-global-typography-text-font-family ); font-weight: var( --e-global-typography-text-font-weight ); background-color: inherit;\">ErrorLog ${APACHE_LOG_DIR}\/<\/span>******.ru<span style=\"font-family: var( --e-global-typography-text-font-family ); font-weight: var( --e-global-typography-text-font-weight ); background-color: inherit;\">.ru_error.log<\/span><\/p><p>CustomLog ${APACHE_LOG_DIR}\/******.ru_access.log combined<\/p><p>SetEnvIf Scheme https HTTPS=on<\/p><p>&lt;\/VirtualHost&gt;<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p>&lt;VirtualHost *:80&gt;<\/p><p>ServerAdmin admin@<span style=\"font-family: var( --e-global-typography-text-font-family ); font-weight: var( --e-global-typography-text-font-weight ); background-color: inherit;\">******.ru<\/span><\/p><p>ServerName 192.168.66.57<\/p><p>#ServerAlias www.<span style=\"font-family: var( --e-global-typography-text-font-family ); font-weight: var( --e-global-typography-text-font-weight ); background-color: inherit;\">******.ru<\/span><\/p><p>DocumentRoot \/var\/www\/******<\/p><p>ErrorLog ${APACHE_LOG_DIR}\/******.ru_error.log<\/p><p>CustomLog ${APACHE_LOG_DIR}\/******.ru_access.log combined<\/p><p>SetEnvIf Scheme https HTTPS=on<\/p><p>&lt;\/VirtualHost&gt;<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u041a\u041e\u041d\u0424\u0410 \u044d\u043d\u0434\u0436\u0438\u043d\u043a\u0441\u0430 \u00a0 server { listen 80; server_name ********.ru; \u00a0 \u00a0 \u00a0return 301 https:\/\/******.ru$request_uri; } \u00a0 \u00a0 server { \u00a0 listen 443; \u00a0 \u00a0 server_name\u00a0********.ru; \u00a0 \u00a0 ssl on; \u00a0 \u00a0 ssl_certificate \/etc\/letsencrypt\/live\/********.ru;\/fullchain.pem; # managed by Certbot \u00a0 \u00a0 ssl_certificate_key <a href=\"https:\/\/mamkinitshnik.ru\/?page_id=370\" class=\"read-more\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-370","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mamkinitshnik.ru\/index.php?rest_route=\/wp\/v2\/pages\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamkinitshnik.ru\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mamkinitshnik.ru\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mamkinitshnik.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mamkinitshnik.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=370"}],"version-history":[{"count":3,"href":"https:\/\/mamkinitshnik.ru\/index.php?rest_route=\/wp\/v2\/pages\/370\/revisions"}],"predecessor-version":[{"id":376,"href":"https:\/\/mamkinitshnik.ru\/index.php?rest_route=\/wp\/v2\/pages\/370\/revisions\/376"}],"wp:attachment":[{"href":"https:\/\/mamkinitshnik.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}