I know this question has been asked before, but nothing works for me. I tried several different things, such as the answers described in these questions:
How to get a proxy server that supports nginx proxy server to automatically redirect from HTTP to HTTPS? Redirecting EC2 elb from http to https
None of them seem to work. I am aws noob, so I'm not quite sure how editing configuration files works, or if I did something wrong.
My setup is this:
My current nginx.config file in my .ebextensions folder (got this from in this article ):
files: "/tmp/deployment/config/#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf" : mode: "000755" owner: root group: root content: | upstream nodejs { server 127.0.0.1:8081; keepalive 256; } server { listen 8080; set $fixedWWW ''; set $needRedir 0;
But it does nothing. I'm out of ideas. Iβm not sure that I am missing a step or something else, but I donβt know what to do. As a workaround, I have my own external side of angularjs that redirect requests without HTTPS, but this is too hacky, and some of the DOMs appear before the redirect, I would like to redirect to the load balancer - where it should be redirected.
Kdogg
source share