Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect http to https #18

Open
simplesteph opened this issue Oct 27, 2017 · 1 comment
Open

Redirect http to https #18

simplesteph opened this issue Oct 27, 2017 · 1 comment

Comments

@simplesteph
Copy link
Contributor

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

@codesuki
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants