node.js - How to setup SSL for instance inside the ELB and communicating with a node instance outside the ELB -


i have create architecture on aws (hope should not wrong) using elb, autoscaling, rds , 1 node ec2 instance outside elb. not getting, that, how can implement ssl on architecture.

let me explain in brief:

  1. i have created 1 classic load balancer.
  2. created on autoscaling group.
  3. assign instances autoscaling group.
  4. and lastly have created 1 instance using node , outside load balancer , autoscaling group.

now when have implemented ssl load balancer, inner instances communicating node instance on http request , because node instance outside load balancer request getting blocked.

can please me implement ssl architecture.

sorry if got confused architecture, if there other best architecture possible please let me know can change architecture.

thanks,

when have static content, best bet serve cloudfront using s3 bucket origin.

about ssl, set ssl @ elb level, follow the documentation .

your elb listens on 2 ports: 80 , 443 , communicates asg instances using open port 80. when secure requests come elb, forwards them server ( ec2 in asg ). then, server, listening on port 80, receives request; if request have x-forwarded-proto https, server nothing, otherwise sets , forward/rewrite url secure 1 , process restart.

i hope helps , careful of err_too_many_redirects


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -