gpt4 book ai didi

amazon-web-services - Elastic Beanstalk 不创建 ssl.conf

转载 作者:行者123 更新时间:2023-12-04 22:35:25 24 4
gpt4 key购买 nike

我正在关注 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 文件,创建环境后,确实启用了 HTTPS。我正在使用 Apache 服务器。

附言我不得不将第 3 行更改为 mod_ssl : [](原来是 mod24_ssl : [])

最佳答案

您正在遵循基于 Amazon Linux 1 (AL1) 的 EB 平台的说明。但是,您似乎使用的是基于 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 .

关于amazon-web-services - Elastic Beanstalk 不创建 ssl.conf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65490815/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com