Home > Blockchain >  AWS ALB Port Forwarding from 80(http) to custom port is possible?
AWS ALB Port Forwarding from 80(http) to custom port is possible?

Time:06-10

My situation is that I have one ec2 instance with two applications, which is port 8080, 8090. Port 8080 is for a java application using only Tomcat and Port 8090 is for a node.js application using Ngnix.

I've got AWS ALB and it currently forwards port 80/433 eventually to 8080. The question is I'd like to have port 80 forwarded to 8090 as well as 8080.

Is this possible? or Transferring ALB to NLB is the only option I can go with for this case?

So, for example, I'd like set like as below.

from ---> to

HTTP: 80 (This currently goes to port 8080 somehow)

HTTP: 8090 (This is what I want to add)

CodePudding user response:

You can added this behaviour to your existing AWS ALB by

  1. Clicking on the 'Target Group' (will be listed under listener tab of the ALB.
  2. On the 'Target Group', select 'Target' tab.
  3. Click 'Edit' to edit the 'Registered Targets'
  4. Click on the ' ' sign
  5. Select the VPC, type in the 'IP' and 'Port'. Click Register.
  • Related