gpt4 book ai didi

amazon-web-services - 如何在 aws elastic beanstalk 上为非 www 和 www 域配置 letsencrypt ssl?

转载 作者:太空宇宙 更新时间:2023-11-03 14:30:07 25 4
gpt4 key购买 nike

我使用 https://github.com/tomyates/letsencrypt-install-elasticbeanstalk-single-instance/为 aws elastic beanstalk 配置 letsencrypt SSL。

我的问题:https://github.com/tomyates/letsencrypt-install-elasticbeanstalk-single-instance/issues/2

我为 domain.com 配置了 SSL,没问题。 (LE_SSL_DOMAIN = domain.com)但是当我运行 www.domain.com 时,浏览器错误:“您的连接不是私有(private)的”。

那么,domain.com和www.domain.com如何同时配置SSL呢?我试过:

-d "$LE_SSL_DOMAIN" -d "www.$LE_SSL_DOMAIN"

但它不起作用!

帮帮我,谢谢大家!

最佳答案

我的解决方案:

 sudo ./certbot-auto certonly -d "$LE_SSL_DOMAIN" --agree-tos --email "$LE_EMAIL" --webroot --webroot-path /var/app/current"$DOCUMENT_ROOT" --debug --non-interactive --renew-by-default

=> 更新:

 sudo ./certbot-auto certonly --apache -d "$LE_SSL_DOMAIN" -d "www.$LE_SSL_DOMAIN" --agree-tos --email "$LE_EMAIL" --debug --non-interactive --renew-by-default

关于amazon-web-services - 如何在 aws elastic beanstalk 上为非 www 和 www 域配置 letsencrypt ssl?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53404100/

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