Browse Source

documented the new options

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@484 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/heads/lighttpd-1.3.x
Jan Kneschke 17 years ago
parent
commit
5e59f6a239
  1. 6
      doc/configuration.txt
  2. 30
      doc/fastcgi.txt

6
doc/configuration.txt

@ -295,6 +295,12 @@ server.protocol-http11
Default: enabled
server.range-requests
defines if range requests are allowed or not.
Default: enabled
SSL engine
``````````

30
doc/fastcgi.txt

@ -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…
Cancel
Save