Configured lighttpd for global redirection.
Lighttpd has been configured to redirect everything to captive.gateway.lan.
This commit is contained in:
parent
0952366e2f
commit
3e1a30805b
|
@ -481,10 +481,12 @@ index-file.names = (
|
||||||
\"index.php\"
|
\"index.php\"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Redirect www.domain.com to domain.com
|
# Redirect all traffic to the captive portal.
|
||||||
#\$HTTP[\"host\"] =~ \"^www\.(.*)$\" {
|
\$HTTP[\"host\"] != \"captive.gateway.lan\" {
|
||||||
# url.redirect = ( \"^/(.*)\" => \"http://%1/\$1\" )
|
url.redirect = (
|
||||||
#}
|
\"^/(.*)\" => \"http://captive.gateway.lan/\",
|
||||||
|
)
|
||||||
|
}
|
||||||
" > "$FLUXIONWorkspacePath/lighttpd.conf"
|
" > "$FLUXIONWorkspacePath/lighttpd.conf"
|
||||||
|
|
||||||
# Configure lighttpd's SSL only if we've got a certificate and its key.
|
# Configure lighttpd's SSL only if we've got a certificate and its key.
|
||||||
|
|
Loading…
Reference in New Issue