ssl - 对带有 www 的子域使用 Cloudflare SSL 证书
问题描述
我正在寻找为我的网站子域使用 Cloudflare Dedicated SSL 证书的解决方案。我已经购买了 10 美元/月的套餐,期望我可以使用 www 设置通配符主机名。
我希望我的子域加载 SSL 证书,并且我的域有 100 多个子域可用。我不想添加带有 www 作为主机名的每个子域,而是使用通配符格式。
阅读以下帖子后,我受到启发-
https://community.cloudflare.com/t/page-rule-forwarding-with-subdomain-and-wildcards/136977 https://community.cloudflare.com/t/subdomain-too-deep/81872
我当前的主机名是 -
.example.com, example.com, .www.example.com
我添加*.www.example.com
了为子域工作,www.sub.example.com
但它似乎不起作用!我认为通配符格式不正确。
我希望我的 SSL 证书适用于所有地址,如下所示。-
example.com
www.example.com
sub1.example.com
www.sub2.example.com
sub2.example.com
www.sub2.example.com
如果 Cloudflare 真的有可能,我很困惑!
谢谢您的帮助!
解决方案
具有自定义主机名的专用证书可以涵盖其他级别的子域(例如: test.dev.www.example.com 而不仅仅是www.example.com)
因此,您应该能够创建一个涵盖 的专用证书
example.com *.example.com *.sub1.example.com *.sub2.example.com
,它应该适用于:
example.com
www.example.com
foo.example.com
www.sub1.example.com
bar.sub1.example.com
baz.sub2.example.com
www.sub2.example.com
[...]
等等。在您的消息中,您提到添加*.www.example.com
到证书以覆盖子域,例如www.sub.example.com
- 但这看起来不正确,因为您需要*.sub.example.com
添加。
推荐阅读
- python - 无法理解python嵌套函数
- msal - 客户端断言受众声明与领域发行者不匹配
- javascript - 在邮递员中,无论大小写或数组的顺序如何,我如何检查响应中的值是否与请求中的值相同?
- shell - SH 脚本未插入用户输入变量
- javascript - 取 3 个可变长度数组并将它们组合成每个索引的数组
- python - 在values()中获取多个反向foreign_key关系对象
- mysql - 计算出现多少次值但基于限制
- mips32 - 从一个数字中提取四位并插入到 MIPS 中的另一个数字中
- php - laravel Auth::user() 认证后返回 null
- networking - 网络 - 什么是南北流量和东西流量?