Connecting AWS ELB to EC2 with SSL

Connecting AWS ELB to EC2 with SSL

An ELB (load balancer) is a device that load balances and distributes requests, but AWS allows the ELB to be SSL-enabled for HTTPS communication.

This makes it possible to use HTTPS for Apache on EC2. To be precise, HTTPS is used up to the ELB, and HTTP is used between the ELB and EC2.


  • Already have one own domain with Route53
  • In Northern Virginia *. ACM created for
  • VPC, EC2 already created
  • Apache already installed on EC2

Before “adding listeners” to the load balancer created at ““, first release port 443 of the load balancer’s security group.

Port 80 should also be released at one point.

This is so that you can see the Apache Welcome page even if you access it via “http://”.

If you do not want to show the http exit, you can remove port 80.


Next, in order to SSL-enable port 443 of the load balancer, you will need an ACM (in the same region as the ELB).

Since EC2 is located in Ohio, ACM will also be created in Ohio.

The domain name of the certificate should be “”.

Perform DNS validation and verify that the CNAME is added by Route53.

After confirming that it is “issued,” finally add a listener.


Configure target group settings.

The target group specifies which port of the EC2 between ELB and EC2 is to be released. Here, port 80 is released.


Change CloudFront settings

Change the settings made in ““.




This completes the setup.

Please visitでもでもEC2のApacheのWelcomeページにアクセス出来ることが確認できます.


Reference Site

CloudFrontとELB間をSSLで通信させる | DevelopersIO
ご機嫌いかがでしょうか、豊崎です。 そろそろ花粉の季節ですね。 昨年鼻水と目のかゆみがひどかったので、アレルギーの検査に行ったのですが、 何のアレルギーもありませんでした。 私の抗体は何に対して鼻水と目のかゆみを出してい …


Discover more from 株式会社CONFRAGE ITソリューション事業部

Subscribe now to keep reading and get access to the full archive.

Continue reading

Copied title and URL