From the course: Docker on AWS

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configure the default target route

Configure the default target route

From the course: Docker on AWS

Start my 1-month free trial

Configure the default target route

- Once we have a load balancer created, one of the things we want to do is make sure that our default target for that load balancer is a meaningful target. We've created the load balancer through the EC2 Dashboard and we're going to modify the targets that way as well. Go into the load balancer's setting, and because we're looking at the ALB load balancer, the routing rules are actually defined in the load balancer setup itself. Right now, our default forwarding rule is forwarding to default. We want to edit that. And it says "Request if not otherwise routed". So this is basically saying our rules are looking for anything to HTTP port 80. If you can't find it, send it here. Instead, what we want to do, is we're going to edit, that's this little pencil icon. We're going to edit and we're going to say: instead of forwarding to default, let's add an action and forward to, or rather return a fixed response. And we can…

Contents