Added standard captive portal redirect code.
This commit is contained in:
parent
f2e2e76158
commit
98ebe0a266
|
@ -511,6 +511,7 @@ index-file.names = (
|
||||||
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\"] != \"captive.gateway.lan\" {
|
||||||
|
url.redirect-code = 302
|
||||||
url.redirect = (
|
url.redirect = (
|
||||||
\"^/(.*)\" => \"http://captive.gateway.lan/\",
|
\"^/(.*)\" => \"http://captive.gateway.lan/\",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue