I’m bald but I’m pulling the remaining hair out trying to figure out why only sometimes after hotspot logon
some users are being sent to
http://<IP OF HOTSPOT>
and not to
httpS://<URL OF HOTSPOT>
I have tried to update all variables to in alogin.html to
https://$(hostname)/login
.
Is there a flowchart or something to figure out this?
Here are the files I’ve modified:
alogin.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="refresh" content="2; url=https://$(hostname)/status">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<title>Internet hotspot - Redirect</title>
<link rel="stylesheet" href="css/style.css">
<script>
function startClock()
setTimeout( {
$(if popup == 'true')
open('https://$(hostname)/status', 'hotspot_status', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=290,height=200');
$(endif)
location.href = unescape('https://$(hostname)/status');
}, 2000);
</script>
</head>
<body onLoad="startClock()">
<div class="ie-fixMinHeight">
<div class="main">
<div class="wrap">
<h1>You are logged in</h1>
<p class="info">If nothing happens, click <a href="$(link-redirect)">here</a></p>
</div>
</div>
</div>
</body>
</html>
rlogin.html
$(if http-status == 302)Hotspot login required$(endif)
$(if http-header == "Location")https://$(hostname)/login$(endif)
<html>
<!--
<?xml version="1.0" encoding="UTF-8"?>
<WISPAccessGatewayParam
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://$(hostname)/xml/WISPAccessGatewayParam.xsd">
<Redirect>
<AccessProcedure>1.0</AccessProcedure>
<AccessLocation>$(location-id)</AccessLocation>
<LocationName>$(location-name)</LocationName>
<LoginURL>https://$(hostname)/login?target=xml</LoginURL>
<MessageType>100</MessageType>
<ResponseCode>0</ResponseCode>
</Redirect>
</WISPAccessGatewayParam>
-->
<head>
<title>...</title>
<meta http-equiv="refresh" content="0; url=https://$(hostname)/login">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
</head>
<body>
</body>
</html>
redirect.html
$(if http-status == 302)Hotspot redirect$(endif)
$(if http-header == "Location")https://$(hostname)/status$(endif)
<html>
<head>
<title>...</title>
<meta http-equiv="refresh" content="0; url=https://$(hostname)/status">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
</head>
<body>
</body>
</html>
Of course I can test and it on my machine and it seems to pull up the https url, however I just did it on a client PC and it again pulls up the http and IP address.
Anyone else see this before?
Controller is running 7.14.1 on a RB1100Dx4 Dude Edition (arm).