Tomcat embeded with AWS Elastic Beanstalk won t listen to port 80

0 votes
I'm launching a Spring Boot .jar with Embedded Tomcat to an Elastic Beanstalk (Java) instance.

server.port=80 in the configuration file, however EB won't let Tomcat bind to port 80.

What's preventing Tomcat from listening to port 80 and how do I fix it?
Nov 15, 2018 in AWS by Jino
• 5,820 points
2,084 views

1 answer to this question.

0 votes

You can run your app with sudo as the ec2-user is not allowed to bind to port 80. This is not a good practice obviously for security concerns. Why do you want to listen on port 80? Elastic beanstalk by default will proxy to port 8080

answered Nov 15, 2018 by findingbugs
• 3,260 points

Related Questions In AWS

0 votes
1 answer

How to use AWS CLI with Elastic Beanstalk?

You have to create a source bundle ...READ MORE

answered Sep 28, 2018 in AWS by Archana
• 4,170 points
2,203 views
0 votes
1 answer

AWS Elastic Beanstalk EC2 With Redis - Cannot Connect - Django_Redis

After setting the security group, I found ...READ MORE

answered Aug 22, 2018 in AWS by Priyaj
• 58,020 points
4,465 views
0 votes
1 answer

AWS Elastic Beanstalk - How to increase instance disk capacity?

The 8 GB diskthat you are seeing ...READ MORE

answered Sep 3, 2018 in AWS by anonymous
3,990 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP