documented the new options
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@484 152afb58-edef-0310-8abb-c4023f1b3aa9svn/heads/lighttpd-1.3.x
parent
b59939b6b9
commit
5e59f6a239
|
@ -295,6 +295,12 @@ server.protocol-http11
|
|||
|
||||
Default: enabled
|
||||
|
||||
server.range-requests
|
||||
defines if range requests are allowed or not.
|
||||
|
||||
Default: enabled
|
||||
|
||||
|
||||
SSL engine
|
||||
``````````
|
||||
|
||||
|
|
|
@ -100,7 +100,8 @@ fastcgi.server
|
|||
"min-procs" => <integer>, # OPTIONAL
|
||||
"max-procs" => <integer>, # OPTIONAL
|
||||
"max-load-per-proc" => <integer>, # OPTIONAL
|
||||
"idle-timeout" => <integer> # OPTIONAL
|
||||
"idle-timeout" => <integer>, # OPTIONAL
|
||||
"broken-scriptfilename" => <boolean> # OPTIONAL
|
||||
)
|
||||
),
|
||||
( <handle> => ...
|
||||
|
@ -131,6 +132,8 @@ fastcgi.server
|
|||
and return 404 (Not Found) if no such file.
|
||||
If disabled, the server forward request to
|
||||
FastCGI interface without this check.
|
||||
:"broken-scriptfilename": breaks SCRIPT_FILENAME in a wat that
|
||||
PHP can extract PATH_INFO from it (default: disabled)
|
||||
|
||||
If bin-path is set:
|
||||
|
||||
|
@ -428,6 +431,31 @@ the necessary environment variables to the FastCGI process. ::
|
|||
)
|
||||
)
|
||||
|
||||
As a last addition you have to make should that both PHP_SELF and
|
||||
PATH_INFO work as expected: ::
|
||||
|
||||
fastcgi.server = ( ".php" =>
|
||||
( "localhost" =>
|
||||
( "socket" => "/tmp/php-fastcgi.socket",
|
||||
"bin-path" => "/usr/local/bin/php",
|
||||
"bin-environment" => (
|
||||
"PHP_FCGI_CHILDREN" => "16",
|
||||
"PHP_FCGI_MAX_REQUESTS" => "10000"
|
||||
),
|
||||
"bin-copy-environment" => (
|
||||
"PATH", "SHELL", "USER"
|
||||
),
|
||||
"broken-scriptfilename" => "enable"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Why this ? the ``cgi.fix_pathinfo = 0`` would give you a working ``PATH_INFO``
|
||||
but no ``PHP_SELF``. If you enable it, it turns around. To fix the
|
||||
``PATH_INFO`` php needs a SCRIPT_FILENAME which is against the CGI spec, a
|
||||
broken-scriptfilename. With ``cgi.fix_pathinfo = 1`` in php.ini and
|
||||
``broken-scriptfilename => "enable"`` you get both.
|
||||
|
||||
|
||||
External Spawning
|
||||
-----------------
|
||||
|
|
Loading…
Reference in New Issue