Score:0

How to set multiple listener rules to load balancer in AWS?

dz flag

I have set multiple listeners and rules for an internet-facing ALB as below

enter image description here

The 80 port only redirect to 443. On 443, I set two kinds of different rules with different target groups.

If I access /* path on my domain, it can forward to targetgroup1. But when I access /static/* path it got a 503 error.

If I change the order between /* and /static/, I can access /static but the /* got a 503 error.

Why can't they work together? How to set correctly?

me flag
ordering is important. /static is part of /* so it will go to rule targetgroup1 with your current rule. you need to list out all specific path first, then /* path, then the last default action
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.