Add files via upload
This commit is contained in:
parent
7246295795
commit
e90db2b97d
|
@ -699,9 +699,7 @@ static-file.exclude-extensions = (
|
||||||
)
|
)
|
||||||
|
|
||||||
index-file.names = (
|
index-file.names = (
|
||||||
\"index.htm\",
|
\"redirect.html\"
|
||||||
\"index.html\",
|
|
||||||
\"index.php\"
|
|
||||||
)
|
)
|
||||||
" >"$FLUXIONWorkspacePath/lighttpd.conf"
|
" >"$FLUXIONWorkspacePath/lighttpd.conf"
|
||||||
|
|
||||||
|
@ -733,10 +731,10 @@ index-file.names = (
|
||||||
else
|
else
|
||||||
echo "\
|
echo "\
|
||||||
# Redirect all traffic to the captive portal when not emulating a connection.
|
# Redirect all traffic to the captive portal when not emulating a connection.
|
||||||
\$HTTP[\"host\"] != \"captive.gateway.lan\" {
|
\$HTTP[\"host\"] != \"redirect.html\" {
|
||||||
url.redirect-code = 307
|
url.redirect-code = 200
|
||||||
url.redirect = (
|
url.redirect = (
|
||||||
\"^/(.*)\" => \"http://captive.gateway.lan/\",
|
\"^/(.*)\" => \"http://redirect.html/\",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
" >>"$FLUXIONWorkspacePath/lighttpd.conf"
|
" >>"$FLUXIONWorkspacePath/lighttpd.conf"
|
||||||
|
@ -1101,6 +1099,17 @@ captive_portal_generic() {
|
||||||
</body>
|
</body>
|
||||||
</html>" >"$FLUXIONWorkspacePath/captive_portal/error.html"
|
</html>" >"$FLUXIONWorkspacePath/captive_portal/error.html"
|
||||||
|
|
||||||
|
echo "\
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Redirecting to Captive Portal</title>
|
||||||
|
<meta http-equiv=\"refresh\" content=\"0; url=index.html\">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>Please wait, refreshing. If page does not refresh, click <a href=\"index.html\">here</a> to login.</p>
|
||||||
|
</body>
|
||||||
|
</html>" >"$FLUXIONWorkspacePath/captive_portal/redirect.html"
|
||||||
|
|
||||||
echo "\
|
echo "\
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
Loading…
Reference in New Issue