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

FS#3144 - uhttpd: https redirect should be to a configurable hostname #7893

openwrt-bot opened this issue Jun 2, 2020 · 0 comments


Copy link

@openwrt-bot openwrt-bot commented Jun 2, 2020


Supply the following if possible:

  • Device problem occurs on: all
  • Software versions of OpenWrt/LEDE release, packages, etc.: master ~2 weeks old
  • Steps to reproduce: see below

Install luci-ssl. It will configure uhttpd to listen on port 443 and redirect http to https. In particular, it will add to /etc/config/uhttpd:

option redirect_https '1'

However, the semantics of this redirect are wrong if a non-self-signed certificate is used.

In particular, it is now a boolean option, and always gets the redirect target from the Host: header. That is, it redirects to, and, assuming that resolves to, it will also redirect to

What I want is a string option that specifies the domain for redirects. I.e., I should be able to set something like this:

option redirect_https_domain ''

and then both and and should redirect to

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

No branches or pull requests

1 participant