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 + )) +) +