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,560 points
328 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,180 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,090 points
239 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
• 56,940 points
809 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
304 views
0 votes
1 answer
0 votes
1 answer