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

Default HTTPS redirect to 301 #13

Open
abea opened this issue Aug 2, 2018 · 6 comments
Open

Default HTTPS redirect to 301 #13

abea opened this issue Aug 2, 2018 · 6 comments

Comments

@abea
Copy link
Contributor

abea commented Aug 2, 2018

This would be for the --redirect-to-https=true flag. Given this is a utility would that be a BC break? I can imagine edge cases.

@austinstarin brought this up in P'unk Slack today. At least this should be an option to pass. No reason I can see why an HTTP to HTTPS redirect should be temporary these days.

@bgantick
Copy link

bgantick commented Aug 2, 2018

We could add a flag for permanent: http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite

no bc break required

@boutell
Copy link
Member

boutell commented Aug 6, 2018 via email

@houmark
Copy link

houmark commented Aug 11, 2018

I agree that this should be a permanent redirect. I don't think the user needs to be able to configure if this is temporary or permanent.

If this is considered a bc break, hmmm, per definition yes, but one can also argue that it was a bug, as the correct redirect would be permanent, and side effects (once you go https it's damn hard to go back to non-https)? Can anyone think of any any side effects that it will now start doing it correct?

@boutell
Copy link
Member

boutell commented Aug 13, 2018 via email

@boutell
Copy link
Member

boutell commented Aug 13, 2018 via email

@boutell
Copy link
Member

boutell commented Jan 13, 2021

Actually this should be a flag. If you think you're ready to generate a cert, but you're mistaken, then you're in a world of hurt if you can't change your mind about this until it's proven solid.

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

No branches or pull requests

4 participants