Score:0

How to connect cloudfront and alb?

ca flag

I am trying to connect to ec2 through ALB through Cloudfront.

Currently, the ALB already has one listener associated with cloudfront.

So I set a listener with a different port as the origin and set the path to the behavior.

However, when connecting to the distribution domain, a 404 error occurred in the previously connected domain.

origin setting

behavior setting

Looking at the cloudfront docs, I could find something related to secure connection via headers, but I just want to connect without header security.

It seems that ALB and Cloudfront are not connected, seeing as the connection through ALB DNS works well. What should I do?

Score:0
ca flag

It was a matter of order of behavior.

If you set the priority higher than the root domain.

This solves the problem because behavior has a higher priority.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.