Blog 201711 ELB(ALB)ã®å¾ãã«ããApache(2.4)ã§ãIPã¢ãã¬ã¹ã«ããã¢ã¯ã»ã¹å¶éã¨ã°ãã¼ãã«IPã®ãã°ã¸ã®è¨é²ãè¡ã Apache 2.4ã§ã°ãã¼ãã«IPã¢ãã¬ã¹ãç¨ããã¢ã¯ã»ã¹å¶å¾¡ãè¡ãå ´åã以ä¸ã®ããã«Requireãã£ã¬ã¯ãã£ãã§ã¢ã¯ã»ã¹å ã®ã°ãã¼ãã«IPã¢ãã¬ã¹ãæå®ããã <Directory /var/www/html/test> Require ip 8.8.8.8 </Directory> ã§ããã®æã«AWSã®ELB(ALB)ã®å¾ãã«ããå ´åã ã¨ãApacheå´ã§èªèããã¢ã¯ã»ã¹å IPã¢ãã¬ã¹ã¯ELBã®ãã¼ã«ã«ãããã¯ã¼ã¯ã¢ãã¬ã¹ã«ãªã£ã¦ãã¾ãã Require ipã§ã°ãã¼ãã«IPã¢ãã¬ã¹ãèªèããå ´åã¯ã以ä¸ã®ä¸è¡ãhttpd.confã«è¿½è¨ãã¦ããéä¿¡å IPã¢ãã¬ã¹ã«X-Forwarded-Forã®ãã®ãå©ç¨ããã RemoteIPHead
{{#tags}}- {{label}}
{{/tags}}