PHPBLT #5ã§ã»ã¼ããã¹ããªãã£ãLTã®è³æã§ãã
æ±äº¬ã§ã¦ã§ããªãã¬ã¼ã·ã§ã³ã¨ã³ã¸ãã¢ããã¦ãã id:dekokun ã§ãã æ¬è¨äºã§ã¯AWSã§ELBã使ç¨ãã¦HTTP/2 or SPDYãéç¨ããä¸ã§ç´é¢ããåé¡ã¨ãã¦ã®ã¯ã©ã¤ã¢ã³ãã®IPã¢ãã¬ã¹ãåãããªããªãåé¡ã®ç´¹ä»ãè¡ãããã®å¾ã«è§£æ±ºçã¨ãã¦ã®PROXY protocolã®ç´¹ä»ã»PROXY protocolã®è¨å®æ¹æ³ã«ã¤ãã¦è¨è¼ãã¾ãã ãã®è¨äºã¯å æ¥å ¬éãã¾ããAWS EC2ã§ã®HTTP/2 or SPDYå°å ¥æ¹æ³ - Hatena Developer Blog (以ä¸ã"ååã®è¨äº"ã¨å¼ã³ã¾ã) ã®ç¶ç·¨ã¨ãªãã¾ãã ELBã®TCPã¢ã¼ãã«ãããåé¡ç¹ 解決çã¨ãã¦ã®PROXY protocol PROXY protocolãå¿ è¦ã¨ãªãæè¡çèæ¯åã³PROXY protocolã®åä½ ELB + nginxæ§æã§ã®PROXY protocolã®è¨å®æ¹æ³ ELBã®è¨å® ngin
ä¾ãã°ã以ä¸ã®ãããªãããã¯ã¼ã¯ãèãã¾ãã ââââââââââââãããããããâââââââââââãããããããâââââââââââââ âãã¯ã©ã¤ã¢ã³ãï¼°ï¼£ãâãï¼âââï¼ãâããããã·ãµã¼ããâãï¼âââï¼ãâãHTTPSãµã¼ãããâ ââââââââââââãããããããâââââââââââãããããããâââââââââââââ 192.168.1.40ãããããããããããã192.168.1.2ããããããããããããhttps_server.jp(1.1.1.1) HTTPSãµã¼ãã¯ã¤ã³ã¿ã¼ãããä¸ã«ããããããã·ãµã¼ãã¨HTTPSãµã¼ãã®éã«ã¯ã«ã¼ã¿ããããã®ã¨ãã¾ãã ãããã·ãµã¼ãçµç±ã§HTTPSã®éä¿¡ãè¡ãå ´åã¯ã以ä¸ã®ãããªãªã¯ã¨ã¹ããçºè¡ãããããã·ãµã¼ãã«æ¥ç¶å ã®HTTPSãµã¼ãããå ¬ééµã¨è¨¼ææ¸ã転éããããã«ãæ示ãè¡ãã¾ãã CONNECTãs
Nginx 1.4.2ã§è©¦ãã¾ããã ãã¼ã ãµã¼ãã¼ã¯ããã¼ã«ã«ã®unboundãlocal-zone, local-dataã使ã£ã¦ç°¡æã³ã³ãã³ããµã¼ãã¼ã«ãã¦è©¦ãã¾ããã local-zone: "oreno." static local-data: "api.oreno. 30 IN A 192.0.2.11" # local-data: "api.oreno. 30 IN A 192.0.2.12" proxy_passã«ãã¹ãåãæ¸ãã¨âåå解決ã¯ä¸åº¦ã ã ãã®ããã« Nginx ã®è¨å®ãæ¸ããå ´åã location /api { proxy_pass http://api.oreno:9999; } ãapi.orenoãã®åå解決ã¯ãnginxã®èµ·åæã«è¡ããã¾ã åå解決ã§ããªãå ´åã¯ãnginxã¯èµ·åãã¾ãã åå解決ã§ããå ´åã¯ããã£ã¨ãã®IPã¢ãã¬ã¹ã«reverse
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}