{"id":4449,"date":"2014-10-02T10:16:53","date_gmt":"2014-10-02T07:16:53","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=4449"},"modified":"2016-01-08T19:27:45","modified_gmt":"2016-01-08T17:27:45","slug":"https-proxy-nginx","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=4449","title":{"rendered":"[nginx] https proxy"},"content":{"rendered":"<p>\u041d\u0430\u0448\u0451\u043b \u0432 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0435 \u043f\u043e <strong>nginx<\/strong>: \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 <strong>https<\/strong>.<\/p>\n<pre>server {\r\n   listen 80;\r\n   listen 443 ssl;\r\n   server_name .site.com;\r\n   ssl_certificate \/etc\/nginx\/domain.com.crt;\r\n   ssl_certificate_key \/etc\/nginx\/domain.com.key;\r\n   ssl_session_cache  builtin:1000  shared:SSL:10m;\r\n   ssl_ciphers EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:EECDH+RC4:RSA+RC4:!MD5;\r\n   ssl_prefer_server_ciphers on;\r\n   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\r\n   ...\r\n   location \/ {\r\n      proxy_pass http:\/\/127.0.0.1:8080;\r\n      proxy_set_header Host $host;\r\n      proxy_set_header X-Real-IP $remote_addr;\r\n      proxy_set_header X-Forwarded-For $remote_addr;\r\n      proxy_set_header HTTPS $https;\r\n   }\r\n}\r\n<\/pre>\n<p>\u0410 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 haproxy, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b TCP \u0432\u043c\u0435\u0441\u0442\u043e HTTP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0448\u0451\u043b \u0432 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0435 \u043f\u043e nginx: \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 https. server { listen 80; listen 443 ssl; server_name .site.com; ssl_certificate \/etc\/nginx\/domain.com.crt; ssl_certificate_key \/etc\/nginx\/domain.com.key; ssl_session_cache builtin:1000 shared:SSL:10m; ssl_ciphers EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:EECDH+RC4:RSA+RC4:!MD5; ssl_prefer_server_ciphers on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; &#8230; location \/ { proxy_pass http:\/\/127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header HTTPS $https; } } \u0410 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-4449","post","type-post","status-publish","format-standard","hentry","category-www"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4449"}],"version-history":[{"count":6,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4449\/revisions"}],"predecessor-version":[{"id":4903,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4449\/revisions\/4903"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}