How to configure SSL in a Amazon Elastic Beanstalk

2019-08-20 20:21发布

问题:

I would like to provide a configuration file in .ebextension/ folder that would allow my EC2 Elastic Beanstalk instance to reply HTTPS.

I am using 64bit Amazon Linux 2017.03 v2.4.4 running PHP 7.0 Elastic Beanstalk.

How can I configure my server to enable HTTPS using configuration files?

回答1:

Don't try to fight AWS best practices. To use HTTPS with Elastic Beanstalk configure the certificate in AWS Certificate Manager and assign it to Elastic Beanstalk's load balancer.

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html