Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
httpserver/https.go: redirPlaintextHost does not properly handle -https-port flag #2422
1. What version of Caddy are you using (
So I guess the core of this issue is really a question of whether we want to tell people, "only use
For people like Cameron, who can't bind 80 and 443 on their hosts but want to use Caddy to serve their websites externally, the
I think the comment:
Applies equally to the inverse case (his), where the HTTPS port being changed externally is also an advanced use case, where the redirect should simply be configured by the user.
Caddy makes the (more common) case of needing to serve HTTPS internally on a different port very easy, while preserving external HTTP/S semantics and conventions.
So, I would just configure it manually as you've suggested, in his case.
Thanks for the great issue report!