I currently use a CNAME to silently direct all traffic for http://cdn.domain.com to my Rackspace Cloud Files domain at http://cxxx.rxx.cxx.rackcdn.com.
Now I also want to silently direct all HTTPS traffic for https://cdn.domain.com to https://cxxx.ssl.cxx.rackcdn.com.
I assume I can't do this using CNAME (if I can, bloody excellent!) so I'll be using VirtualHosts, as such:
<VirtualHost *:80> ServerName cdn.domain.com RewriteEngine On RewriteRule ^(.*)$ http://cxxx.rxx.cxx.rackcdn.com [L,R=301] </VirtualHost> <VirtualHost *:443> ServerName cdn.domain.com RewriteEngine On RewriteRule ^(.*)$ https://cxxx.ssl.cxx.rackcdn.com [L,R=301] </VirtualHost>
Will I need an SSL certificate for the second vhost, or will it "borrow" it from Rackspace's HTTPS domian?