I'm trying to set my own domain name as an alias for the generated DNS by Amazon's ELB. The generated DNS is not good for me, since I've purchased a certificate for my domain (www.domain.com).
However, when I set www.domain.com
to be the alias for uglydns-292929292929.us-west-2.elb.amazonaws.com
in route53 panel, and go to my browser to try to access www.domain.com
, it automatically changes the URL in address bar to uglydns-292929292929.us-west-2.elb.amazonaws.com:9876/app/path/
.
This leads to an awful message on screen saying that the site is using a certificate for www.domain.com
and that uglydns-292929292929.us-west-2.elb.amazonaws.com
might be a dangerous site.
How could I solve this issue? I need to use my 100 dollars certificate with the load balancer, so a great solution is to give the ELB a domain I create instead of the ugly one generated by aws. Please help!