我已经看过以下内容了
https://superuser.com/questions/685353/ssl-certificate-for-cname-record
我有一个域名,比如我购买了SSL证书的example1.com
。我有另一个域example2.com
。我想在example1
上为example2
添加CNAME记录并强制它使用SSL(即使我必须为example2
购买另一个证书)
有点像:
NAME | TYPE | VALUE
--------------------+-------------------+-------------------------------
sub.example2.com CNAME https://sub.example1.com
哪里
sub.example1.com
已经拥有SSL
sub.example2.com
没有SSL(还)
根据我所学到的,SSL证书安装在Web服务器上(例如Apache),而不是DNS级别。
如何为子域设置SSL?
multiple SSL 您需要将其添加到Apache conf文件中。