captive: switch over to new captive portal feature

This commit is contained in:
Matthias Strubel 2017-07-02 09:18:58 +02:00
parent 30cc175614
commit 7086c581bf
3 changed files with 2 additions and 31 deletions

View File

@ -1,16 +0,0 @@
#-------------------- FAST CGI stuff
# Run a specific php script when the URL /generate_204 is requested.
# Android clients request this URL to check for a full working
# internet connection, we want to fake a reply. This config section is
# a hack to make a php script without the ".php" extension work when
# mod_rewrite is not available.
$HTTP["url"] =~ "^/generate_204$" {
fastcgi.server = (
"" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 1
))
)
}

View File

@ -1,10 +0,0 @@
# Fix for iOS7
# It ask especially different domains without a specific URL.
# It want to get a "success" message, to allow full system/internet access
$HTTP["useragent"] =~ "CaptiveNetworkSupport" {
server.document-root = "/opt/piratebox/www/library/test/"
index-file.names = ( "success.html" )
dir-listing.activate = "disable"
server.error-handler-404 = "/success.html"
}

View File

@ -78,11 +78,8 @@ include "/opt/piratebox/conf/lighttpd/all-redirect.conf"
#server.modules += ( "mod_accesslog" )
#accesslog.filename = "/opt/piratebox/tmp/access.log"
# Fix for iOS7
include "/opt/piratebox/conf/lighttpd/iOS7-fix.conf"
include "/opt/piratebox/conf/lighttpd/fastcgi-php-generate203.conf"
# Captive Portal fake answers
include "/opt/piratebox/conf/lighttpd/captive_portal.conf"
## Uncommenting the following line enables PHP for the
## complete PirateBox