I want to serve multiple domains from an Amazon CloudFront distribution over HTTPS. How can I do that?
To serve multiple domains from CloudFront over HTTPS, you must add the following values to the settings of your distribution:
- Enter all domain names in the Alternate Domain Names (CNAMEs) field. For example, to use the domain names example1.com and example2.com, enter both domain names in Alternate Domain Names (CNAMEs).
Note: Be sure to separate the domain names using commas, or add each domain name on a new line.
- Add your SSL certificate that is associated with all domain names. You can add a certificate that is either uploaded to AWS Identity and Access Management (IAM), or requested with AWS Certificate Manager (ACM).