Elastic Beanstalk 未创建 ssl.conf

Elastic Beanstalk not creating ssl.conf

我正在按照 these 说明在 Elastic Beanstalk 管理的 EC2 实例上启用 HTTPS。我可以看到 Elastic Beanstalk 创建了 /etc/pki/tls/certs/server.crt & /etc/pki/tls/certs/server.key 文件。但是,Elastic Beanstalk 没有创建 /etc/httpd/conf.d/ssl.conf 文件。手动创建 /etc/httpd/conf.d/ssl.conf 文件,post 环境创建,确实启用了 HTTPS。我正在使用 Apache 服务器。

P.S。我不得不将第 3 行更改为 mod_ssl : [](原来是 mod24_ssl : [])

您正在遵循基于亚马逊 Linux 1 (AL1) 的电子商务平台说明。但是,您似乎正在使用基于 AL2 的 平台,其中代理(httpd 或 nginx)的设置与 AL1 上的不同。具体来说,它们应该在 .plaftorm 文件夹中,而不是 .ebextentions。来自 docs:

Configuration file location – You should place proxy configuration files in the .platform/nginx and .platform/httpd directories on all Amazon Linux 2 platform versions.

有关如何在 AL2 平台上设置 httpd 的更多详细信息,请参阅 Configuring Apache HTTPD