mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2023-12-14 07:22:58 +01:00
17 lines
647 B
Plaintext
17 lines
647 B
Plaintext
#-------------------- 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
|
|
))
|
|
)
|
|
}
|