ecs-nginx-proxy icon indicating copy to clipboard operation
ecs-nginx-proxy copied to clipboard

Redirect http to https

Open simplesteph opened this issue 6 years ago • 1 comments

Don't know if helpful, but to redirect http to https, I used this code: https://stackoverflow.com/a/35097290/3019499

server {
  listen 81;
  return 301 https://$host$request_uri;
}

Then the ELB listens on port 80 and goes to port 81 for the ecs-nginx-proxy.

Not sure if this should be a default handy feature of the proxy, or turned on on demand

simplesteph avatar Oct 27 '17 00:10 simplesteph

Thank you! Maybe people who want to customize their settings can reference this :)

codesuki avatar Oct 27 '17 02:10 codesuki