简体   繁体   中英

Add multiple domains to aws cloudfront

I am trying to point both https://app.test1.com and https://app.test2.com to a aws cloudfront distribution.

Does anyone how how to do it? I am unable to figure out how to add both domains and also both the SSL certs to a single cloud front distribution

You can only attach 1 one certificate to each CloudFront distribution. If multiple domains is what you want, you need a single certificate with all the desired hostnames listed as Subject Alternative Names. Many SSL CAs will sell you a cert like this, sometimes called multi-domain, SAN, or UC certificates. You can also get one from Amazon Certificate Manager.

You add additional hostnames to your distribution the same way you added the first one: configure alternate domain names . Simply using DNS CNAME records isn't enough, becaue CloudFront has to expect the hostname on the incoming request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM