0

I am working on containerizing one react app & provision it using ECS cluster with alb. Everything looks great but whenever I accessing the ALB DNS in the browser it returns an empty page with 2 words only "react app" I checked health check all the backend instances are healthy and returning 200 code.

I have used the ec2 instances IP address in the browser and the page loaded completely.

It seem issue with the alb, why not loaded the complete page

Jatin Mehrotra
  • 9,286
  • 4
  • 28
  • 67
Rabihh
  • 9
  • 2
  • 2
    what is the health status of target group in your ec2 instance? – Jatin Mehrotra Jul 04 '21 at 05:33
  • its shown healthy, even i tried another react app same results , when you open it from EC2(paste the ip address in the browzer) working fine and when i past on any browzer the dns name of the loadbalencer its shown empty page with 2 words"reack app" on the header. – Rabihh Jul 04 '21 at 10:25
  • Can you show your ALB's listeners and forwarding rules? – StefanN Jul 04 '21 at 11:23
  • Hi Stefan , rules are IF 1 if Path is/ THEN Forward to ecs-zero-zero: 1 (100%) Group-level stickiness: Off – Rabihh Jul 04 '21 at 15:30

1 Answers1

0

It should be a problem on how you have configured the DockerFile. You would have added some default route to nginx configuration which displays 'react app'.

To debug, please try to run the DockerFile from your local using Docker Desktop and see if you are able to browse the react app.

If it works fine in your local then for sure 100% it'll work in ECS without any problem.

jeninjames
  • 128
  • 7