React Application not accessible through the EC2 Public IP

0

I have deployed my REACT application to the EC2 instance in the Linux server and serving with the Nginx.

The build files are served when I am accessing locally with curl localhost in the EC2 instance. Build file served using localhost

But when I am using my public IP, I am getting no response. Public IP giving no response

Note: All the necessary ports are already enabled in the inbound rules of security groups.

Any help is greatly appreciated. Thank you

Incepta
demandé il y a 5 mois210 vues
3 réponses
0

Hello.

Is your EC2 running in a public subnet?
Even if a public IP address is attached to EC2, you will not be able to connect if it is not started in a public subnet.

profile picture
EXPERT
répondu il y a 5 mois
0

Hello, Thanks for responding. I guess yes as I can see the Destination set to 0.0.0.0/0 in the route table of the Subnet my ec2 have. But you can have a look at the image below: Enter image description here

Incepta
répondu il y a 5 mois
0

Also, this is my instance summary: Enter image description here

Incepta
répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions