OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Alexander E. Patrakov - 02.06.2020

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

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 http://192.168.1.1/ to https://192.168.1.1/, and, assuming that openwrt.mydomain.ru resolves to 192.168.1.1, it will also redirect http://openwrt.mydomain.ru/ to https://openwrt.mydomain.ru/.

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 'openwrt.mydomain.ru'

and then both http://192.168.1.1/ and http://openwrt.mydomain.ru/ and http://anything.that.resolves.to.192.168.1.1.com/ should redirect to https://openwrt.mydomain.ru/.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing