Access multiple HTML sites in S3 bucket with one CloudFront distribution

0

Hello, I have a S3 Bucket with two folders: Manual FactSheets

Those folders have subfolders like 3.2, 3.3 and so on. In every subfolder an index.html file is placed which serves the static webpage.

I want to access those different subfolders with my own subdomain, e.g. manual.example.de/Manual/3.2/index.html but with only one CloudFront distribution. So I have to build a URL like this: <distribution>cloudfront.net/Manual/3.2/index.html .

I already set index.html as the root file in my S3 origin. Can you help me with this issue?

BR Mark

1개 답변
0

You’ll need an ACM certificate in us-east-1 for your custom domain. If you intend to use multiple domain names on your CDN ensure you add the additional names to the ACM.

Then edit your cloudfront distribution and configure your Alternate Domain Name selecting the ACM certificate.

That should get you up and running.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html

If you need multiple domains then you can find info here https://repost.aws/knowledge-center/multiple-domains-https-cloudfront

profile picture
전문가
답변함 6달 전
profile pictureAWS
전문가
검토됨 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠