GCEã§HTTPSè² è·åæ£ SSL Termination
æè¡çã«ä¸å¯è½ã ããã¨æã£ã¦ãã¾ããããäºåéãHTTPSè² è·åæ£ãGCEã§ãå®ç¾å¯è½ã¨ãªãã¾ããã
ããã«ãããSSL TerminationãGCEã§ãå¯è½ã¨ãªãã¾ããï¼
HTTPè² è·åæ£ã¨ã®å¤æ´ç¹
GCEã®ãã¼ããã©ã³ãµã¯2ã¤ããã¾ã
- ãããã¯ã¼ã¯è² è·åæ£
- HTTPè² è·åæ£
ããããAWS - ELBã«æ¯ã¹ã¦ææ°ä¸è¦ãªã©ã¢ããã³ãã¼ã¸ãããã®ã¯å¤ããã¾ããããæ¬æ©è½ã¯HTTPè² è·åæ£
ã®ã¿ã§ãã
Developers Consoleããå¤æ´å¯è½ã§ãã
ç°¡åã§ãããä¸æ¦HTTPè² è·åæ£ã¨ãã¦è¨å®ãããã®ããHTTPSã¸å¤æ´ããæé ãè¨ãã
HTTPSã§ãªã¯ã¨ã¹ããåãã
SSL証ææ¸ãã¢ãããã¼ã
ã¢ããªã±ã¼ã·ã§ã³å´ã®èæ ®
AWSã®ELBã¨åããããã¼ããã©ã³ãµå´ã§SSLãå¥ããã¦ãã¾ãã®ã§ãããã¯ã¨ã³ãã®Webãµã¼ãå´ã«ã¨ã£ã¦ã¯ ãã©ã¦ã¶ããHTTPSãHTTPã®å¤æãã¤ãã¾ããããããããã1ã¤ã®IPã¢ãã¬ã¹ã§80 & 443ã両æ¹Listenåºæ¥ãªã
ã®ã§ããã®èæ
®ã¯å¿
è¦ãªãããããã¾ããã
HTTPããã
ããããæ¸ããã¨ã¯ããã¥ã¡ã³ãã¼ã·ã§ã³ã«ãè¨è¼ããªãå
容
ã¨ãªãã¾ããä»å¾å¤æ´ãããå¯è½æ§ã¯æ¥µãã¦é«ãã¨æãã¾ãï¼
ããµãã¦å«ã ãã©ãããªãã¿phpinfo()ã§ã®ããã¾ãã#ãã£ã¨ã¤ã±ã¦ãã«ãã³ã¤ã¤æ¹æ³ãæ¢ãã
ãããè¦ã¦ããããã¨ã¯
- HTTPSã¯ä½ãã®ãªã½ã¼ã¹ã§SSLã解ãã¦ãã
ã¨ãããã¨ã¯ãææ°ä¸è¦ã¨ã¯ãªããªãã¯ã
- AWS - ELBã«æ¯ã¹ã¦ãSSLã解ãå°ç¨ã®ããããå¨ã
ããã X-FORWARDED-FORã«åºã¦ãããã ããã«ã³ãåºåãã®2段転éã
ã¾ã¨ã
AWSã®ELBã¨ã¯ããªãéãã®ã§æ³¨æï¼
1. 1ã¤ã®IPã¢ãã¬ã¹ã§ 80 & 443ã Listen åºæ¥ãªã
2. X-Forwarded-Forã¯ã«ã³ãåºåãã«ãªã(ããã¯2段ãªãããã¨ãããã¨ãããªããæ¨æºã®åã)
3. ãã®æ§æã ã¨ãææ°ç¡ãã¨ã¯è¡ããªãã®ã§ã¯ãªããï¼
ã²ã¨ã¾ãåºæ¥ã¾ããããã¾ã 課é¡ã沢山ããã¾ããããBetaãåããé ã¾ã§ã«ä»æ§ãæ§å¤ãããããããããªãã®ã§ãããã¾ã§å¾
ã¤ï¼