mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2023-12-14 07:22:58 +01:00
PHP feature: We ship it disabled per default.
- User needs to opt-in - Unrestricted, execution, currently Fixed #130
This commit is contained in:
parent
8fd815d1e5
commit
6c2c691b40
|
@ -1,25 +0,0 @@
|
||||||
#-------------------- FAST CGI stuff
|
|
||||||
|
|
||||||
server.modules += ( "mod_fastcgi" )
|
|
||||||
fastcgi.server = (
|
|
||||||
".php" => ((
|
|
||||||
"bin-path" => "/usr/bin/php-cgi",
|
|
||||||
"socket" => "/tmp/php.socket",
|
|
||||||
"max-procs" => 1
|
|
||||||
))
|
|
||||||
)
|
|
||||||
|
|
||||||
# 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
|
|
||||||
))
|
|
||||||
)
|
|
||||||
}
|
|
|
@ -7,6 +7,7 @@ server.modules = (
|
||||||
"mod_redirect",
|
"mod_redirect",
|
||||||
# "mod_rewrite",
|
# "mod_rewrite",
|
||||||
"mod_setenv",
|
"mod_setenv",
|
||||||
|
"mod_fastcgi"
|
||||||
)
|
)
|
||||||
|
|
||||||
server.document-root = "/opt/piratebox/www"
|
server.document-root = "/opt/piratebox/www"
|
||||||
|
@ -114,4 +115,9 @@ $HTTP["useragent"] =~ "CaptiveNetworkSupport" {
|
||||||
server.error-handler-404 = "/success.html"
|
server.error-handler-404 = "/success.html"
|
||||||
}
|
}
|
||||||
|
|
||||||
include "/opt/piratebox/conf/lighttpd/fastcgi.conf"
|
|
||||||
|
include "/opt/piratebox/conf/lighttpd/fastcgi-php-generate203.conf"
|
||||||
|
|
||||||
|
## Uncommenting the following line enables PHP for the
|
||||||
|
## complete PirateBox
|
||||||
|
#include "/opt/piratebox/conf/lighttpd/fastcgi-php.conf"
|
||||||
|
|
Loading…
Reference in a new issue