From 6a59bdc2ea3777eb614fc6d2a92f76d03d04bf2f Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Tue, 26 Apr 2016 21:29:56 +0200 Subject: [PATCH] Follow Up commit to 6c2c691b40de0032fe7f68fd81abfd07487c7341 --- .../conf/lighttpd/fastcgi-php-generate203.conf | 16 ++++++++++++++++ .../piratebox/conf/lighttpd/fastcgi-php.conf | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100644 piratebox/piratebox/conf/lighttpd/fastcgi-php-generate203.conf create mode 100644 piratebox/piratebox/conf/lighttpd/fastcgi-php.conf diff --git a/piratebox/piratebox/conf/lighttpd/fastcgi-php-generate203.conf b/piratebox/piratebox/conf/lighttpd/fastcgi-php-generate203.conf new file mode 100644 index 0000000..4f1d6e5 --- /dev/null +++ b/piratebox/piratebox/conf/lighttpd/fastcgi-php-generate203.conf @@ -0,0 +1,16 @@ +#-------------------- 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 + )) + ) +} diff --git a/piratebox/piratebox/conf/lighttpd/fastcgi-php.conf b/piratebox/piratebox/conf/lighttpd/fastcgi-php.conf new file mode 100644 index 0000000..2242a95 --- /dev/null +++ b/piratebox/piratebox/conf/lighttpd/fastcgi-php.conf @@ -0,0 +1,10 @@ +#-------------------- FAST CGI stuff + +fastcgi.server = ( + ".php" => (( + "bin-path" => "/usr/bin/php-cgi", + "socket" => "/tmp/php.socket", + "max-procs" => 1 + )) +) +