502 Bad Gateway on a Spring boot application in elastic beanstalk

0

I created a new elastic beanstalk, I have my springboot app running on port 5000 and have explicitly put it in the configuration as well and am getting a 502 nginx error. I'm not seeing any issues in the logs or the health report. The security inbound rules are port range 80, and source 0.0.0.0/0 Any help would be appreciated! Enter image description here Enter image description here Enter image description here

James
gefragt vor 6 Monaten880 Aufrufe
1 Antwort
0

If it’s a nginx error then this error is not coming from the AWS alb.

Seems you’re fronting your application with a reverse nginx proxy.

You’ll need to check your nginx configuration to ensure it’s forwarding the traffic to the correct internal application port.

Similar to this https://shreyakupadhyay.medium.com/deployment-next-react-js-and-spring-boot-on-aws-ec2-with-nginx-d39bd57ca9

profile picture
EXPERTE
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen