can I use www as a cname for cloudfront domain if my domain already redirects to www -


i'm trying use cloudfront on whole web site, want use domain name instead of cloudfront one.

currently (before cloudfront) request domain example.com redirected code www.example.com. on dns cname www.example.com has value of example.com.

now have configure cloudfront , have domain (example1234.cludfront.com).

do thing need is, change value of cname www.example.com example1234.cludfront.com? , using cludfront domain?

thanks

yes, although might need configure web server on cloudfront side know new name show correct website clients if server using vhosts.

i've never used cloudfront, specifically, don't know details setup.

edit: although re-read question wonder if might have misread want do.

i think current dns record like:

www.example.com. 3600   in     cname   example.com. 

which means when browser asks www.example.com find ip ip of example.com

if instead configure dns example.com cname record like

www.example.com. 3600   in     cname   example1234.cloudfront.com. 

any dns resolution requests www.example.com resolve example1234.cloudfront.com.

however, might have misunderstood question , want other way around, in case current setup like:

example.com.     3600   in     cname   www.example.com. 

then new record should

example.com.     3600   in     cname   example1234.cloudfront.com. 

or both:

www.example.com. 3600   in     cname   example1234.cloudfront.com. example.com.     3600   in     cname   example1234.cloudfront.com. 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -