How to divert the traffic to targer servers without port number in URL

别来无恙 提交于 2019-12-02 13:19:19

The reason is your load balancer listening on the same port which is used in the webserver.

You need to define a listener for LB to listen on a port and forward traffic to target on the desired group.

specify port 8580 in the target group and specify 80 in the Loadbalancer listener.

Update:

If all application running on the same instance you need host-based routing.

In the above screenshot, suppose behind each target group there is one instance, but five different target group so api.example.com will route to its own target group.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!