change redirect code and captive portal fix
This commit is contained in:
parent
2db2ef38a0
commit
4e34fc809d
|
@ -725,7 +725,7 @@ index-file.names = (
|
||||||
|
|
||||||
# Respond with Google's captive response on certain domains.
|
# Respond with Google's captive response on certain domains.
|
||||||
# Domains: www.google.com, clients[0-9].google.com, connectivitycheck.gstatic.com, connectivitycheck.android.com, android.clients.google.com, alt[0-9]-mtalk.google.com, mtalk.google.com
|
# Domains: www.google.com, clients[0-9].google.com, connectivitycheck.gstatic.com, connectivitycheck.android.com, android.clients.google.com, alt[0-9]-mtalk.google.com, mtalk.google.com
|
||||||
\$HTTP[\"host\"] =~ \"((www|(android\.)?clients[0-9]*|(alt[0-9]*-)?mtalk)\.google|connectivitycheck\.(android|gstatic))\.com\" {
|
\$HTTP[\"host\"] == \"((www|(android\.)?clients[0-9]*|(alt[0-9]*-)?mtalk)\.google|connectivitycheck\.(android|gstatic))\.com\" {
|
||||||
server.document-root = \"$FLUXIONWorkspacePath/captive_portal/connectivity_responses/Google/\"
|
server.document-root = \"$FLUXIONWorkspacePath/captive_portal/connectivity_responses/Google/\"
|
||||||
url.rewrite-once = ( \"^/generate_204\$\" => \"generate_204.php\" )
|
url.rewrite-once = ( \"^/generate_204\$\" => \"generate_204.php\" )
|
||||||
}
|
}
|
||||||
|
@ -734,7 +734,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-code = 307
|
||||||
url.redirect = (
|
url.redirect = (
|
||||||
\"^/(.*)\" => \"http://captive.gateway.lan/\",
|
\"^/(.*)\" => \"http://captive.gateway.lan/\",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue