My website abc.domain.com
is hosted on EC2.
In cloudfront I put abc.domain.com
in the “Origin Domain Name” field and the "Alternate Domain Names (CNAMEs)" field.
Origin Domain Name: abc.domain.com
Alternate Domain Names (CNAMEs): abc.domain.com
The “Domain Name” of this distribution is xxx.cloudfront.net
. In route53 I setup ALIAS A record with abc.domain.com
point to xxx.cloudfront.net.
The problem is that with abc.domain.com
point to xxx.cloudfront.net
, route53 will not allow me to make another A record with abc.domain.com
point to the IP of this EC2 so the "Origin Domain Name: abc.domain.com
" will not work.
========================== Possible Solution =====================
Origin Domain Name: abc2.domain.com
Alternate Domain Names (CNAMEs): abc.domain.com
In route53 Setup ALIAS A record with abc.domain.com
point to xxx.cloudfront.net
.
In route53 make abc2.domain.com
point to the IP of this EC2 so the "Origin Domain Name: abc2.domain.com
" will work.