i have nodejs program creates 2 servers.
https server running on port 3000
http server running on port 8080 (it forwards domain name https)
i trying deploy on elastic beanstalk.
i uploaded certificate , opened https port in elastic beanstalk (as outlined in document: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html)
my application doesn't run @ all. goes red deployed. looking @ logs, see trying redirect https domain name, goes nowhere.
i fail see how amazon know port has which. how know port 3000 has https, , port 8080 has http? never mentioned anywhere. perhaps that's issue?
any idea do? many thanks.
basically, need to coustumized elastic beanstalk environment:
- elastic load balancer:
- listen on port 80 , proxy ec2 instance port 8080.
- listen on port 443 , proxy ec2 instance port 3000.
- ec2 web server/proxy (your nginx/apache):
- listen on port 8080 , response redirect https.
- listen on port 3000 , serve request.
i thought config failed because configure elb using elastic beanstalk web console. web console able forward http , https single port in ec2 instance. so, request never handled port 3000. can't using elastic beanstalk web console, need apply using method, such .ebextensions or cli.
Comments
Post a Comment