user3119018
user3119018

Reputation: 199

How to connect to particular port by aws elb

I have two ec2 instances and deployed java apps to '/var/www/html'. They are running in port 9010 and I can access them by 'http://xxxx:9010'.

Next,I created elb and added the two instances to it.However,I can't access the java app by elb public dns 'http:elbxxxxx:9010'. It returned 404.

I put index.html to '/var/www/html/' , I can see index.html by elb public dns.

I'm looking for some configurations for ports in elb console but I can't.

How can I access them?

Upvotes: 0

Views: 110

Answers (1)

jzonthemtn
jzonthemtn

Reputation: 3414

You have to configure a listener on the Elastic Load Balancer. Your listener can be configured to listen on any port (such as 80) and send the requests to your instances on port 9010. Here's how to configure listeners.

Upvotes: 2

Related Questions