Double lash redirection not working after ELB

0

When i am redirect // slash from nginx its working but when i keeping instances behind ELB then its not working can any one help regarding this.

Without ELB redirect working properly when request comes directly to EC2.

1개 답변
0

Hi there,

I understand that your nginx is not working when your instance is behind the ELB. Please correct me if I misunderstood.

Your load balancer serves as a single point of contact for instance, once it is set behind it hence your nginx is not working. The issue might be the configuration of the load balancer as it needs to route traffic to your instance. To configure your load balancer, you must create target groups and then register targets with your target group for your load balancer to be effective, also create listeners to check for connection requests from clients and route requests from clients to the targets in your target group. Please refer to the outlined AWS documentation[1] on how to configure your Load balancer.

Reference links:

[1]https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-network-load-balancer.html

I hope you find this information useful.

Winnie
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인