To deploy PHP application on AWS Elastic Beanstalk (HTTPS) make sure to include the following as part of your configuration file
files:
/etc/nginx/conf.d/https.conf:
mode: “000644”
owner: root
group: root
content: |
# HTTPS server
. . . → Read More: AWS – Elasticbeanstalk HTTPS Single Instance