Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#19979 closed enhancement (obsolete)

Add HTTPS Redirect in LUCI when HTPPS Enhancement Packages are Installed

Reported by: eric_dtw Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: uhttpd luci https 443 Cc:


When LUCI is upgraded from plain HTTP:80 to HTTP:443, there is no redirect file added to help the transition. You can configure UHTTPD to just ignore :80, but that's not as useful. You could replace UHTTPD with APACHE, but thats a bit over doing it. It is simple as a short term fix to include the following file pair as a replacement for the base "index.html." Long term UHTTPD should be able to do the 80->443 forcefully.


<script language="JavaScript">
function GoLuciHTTPS() {
  var URLProtocol = window.location.protocol;
  var URLHostName = window.location.hostname;
  var URLGoTo = "https://" + URLHostName + "/next.html";
  window.location = URLGoTo;



<meta http-equiv="refresh" content="0; URL=/cgi-bin/luci"/>
<body style="background-color: black">
<a style="color: white; text-decoration: none" href="/cgi-bin/luci">OpenWRT Configuration Interface</a>

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by jow

  • Resolution set to obsolete
  • Status changed from new to closed

Already implemented directly in uhttpd with r45852

comment:2 Changed 3 years ago by eric_dtw

Excellent. Sorry I missed that.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.