- Newest
- Most votes
- Most comments
Hello.
Can I connect to EC2 and check Nginx error logs?
I think that logs are probably output that can be used for troubleshooting.
/var/log/nginx/error.log
Also, check whether the listening port in the Nginx configuration file is correct.
https://shreyakupadhyay.medium.com/deployment-next-react-js-and-spring-boot-on-aws-ec2-with-nginx-d39bd57ca9
I do have a similar issue with a nestjs app (nodejs setup) deployed on beanstalk. When i did the sample application from AWS it worked but when i deployed a local laptop working nestjs app it gives me 502 bad Gateway nginix. I have no errors on the instance setup ( shows green health) in beanstalk and have the port setup accordingly in the config file with process.env.PORT ... any ideas where to look for any further troubleshooting ? TIA
Relevant content
- Accepted Answerasked 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a month ago