Questions about AWS configuration.

Asked 2 years ago, Updated 2 years ago, 106 views

Currently, we have created three web sites, and the following configuration is included.
[Load Balancer A] A.com ( (Server A)
[Load Balancer B] B.jp ( (Server B)
[Load Balancer C] C C.work (Server C)

The servers (EC2) associated with each domain are separate instances.

Due to the high maintenance cost per load balancer, I would like you to determine if the following configurations are possible:

[Load Balancer A] A.com ( (Server A)
[Load Balancer A] (B.jp (Server B)
[Load Balancer A] CC.work (Server C)

According to my own research,
[Load Balancer A] A.com ( (Server A)
[Load Balancer A] B.jp ( (Server A)
[Load Balancer A] C C.work (Server A)
If so, I think I can do it...

Thank you for your cooperation.

aws amazon-elb

2022-09-30 20:10

1 Answers

I think it's possible if you do host-based routing with Application Load Balancer (ALB).Create a target group for each server and configure host conditions and transfers to the target in ALB with listener rules.

Target Group Example:

  • targetA:Target=ServerA
  • targetB:Target=ServerB
  • targetC:Target=ServerC

Example Rules:


2022-09-30 20:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.