mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2023-12-14 07:22:58 +01:00
captive: switch over to new captive portal feature
This commit is contained in:
parent
30cc175614
commit
7086c581bf
|
@ -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
|
|
||||||
))
|
|
||||||
)
|
|
||||||
}
|
|
|
@ -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"
|
|
||||||
}
|
|
||||||
|
|
|
@ -78,11 +78,8 @@ include "/opt/piratebox/conf/lighttpd/all-redirect.conf"
|
||||||
#server.modules += ( "mod_accesslog" )
|
#server.modules += ( "mod_accesslog" )
|
||||||
#accesslog.filename = "/opt/piratebox/tmp/access.log"
|
#accesslog.filename = "/opt/piratebox/tmp/access.log"
|
||||||
|
|
||||||
|
# Captive Portal fake answers
|
||||||
# Fix for iOS7
|
include "/opt/piratebox/conf/lighttpd/captive_portal.conf"
|
||||||
include "/opt/piratebox/conf/lighttpd/iOS7-fix.conf"
|
|
||||||
|
|
||||||
include "/opt/piratebox/conf/lighttpd/fastcgi-php-generate203.conf"
|
|
||||||
|
|
||||||
## Uncommenting the following line enables PHP for the
|
## Uncommenting the following line enables PHP for the
|
||||||
## complete PirateBox
|
## complete PirateBox
|
||||||
|
|
Loading…
Reference in a new issue