Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn’t it possible to use a CNAME redirect with HTTPS

This Google Storage documentation page states that You can use a CNAME redirect only with HTTP, not with HTTPS. But I cannot see any reason for that. Can anyone explain me why?

like image 283
qdii Avatar asked Feb 15 '12 13:02

qdii


People also ask

Does CNAME work with https?

When both domains are in the SSL cert list, your CNAME can redirect with HTTPS. This is how CDN service provider such as Incapsula with works with HTTPS. They just create a "Multi-domain" SSL cert for you.

Can I use a CNAME to redirect?

A CNAME record redirects site visitors from the domain name they entered in their browsers to another domain name—in your case, your website running on Site Factory. Using CNAME to point to a website location instead of an actual IP address also allows Site Factory to better guarantee high-availability.

Does CNAME need SSL?

You do need an SSL certificate. I wanted to add that it is because there is no such thing as a CNAME redirect. A CNAME is not a redirect. A CNAME instructs the DNS to resolve to the same domain as where the CNAME points.


1 Answers

It is possible!

There could be many domains attached to one SSL certificate.

ASSUME travel-maps.example.com CNAME c.commondatastorage.googleapis.com.

When both domains are in the SSL cert list, your CNAME can redirect with HTTPS.


Demo

This is how CDN service provider such as Incapsula with works with HTTPS. They just create a "Multi-domain" SSL cert for you.

You may check a demo cert-info in this site. https://www.incapsula.com/


Any way, this kind of SSL cert is for business use in most case and are generally pretty expensive.

like image 102
Shiji.J Avatar answered Oct 17 '22 11:10

Shiji.J