Changeset 484
- Timestamp:
- 07/29/2005 09:12:40 AM (3 years ago)
- Location:
- branches/lighttpd-1.3.x/doc
- Files:
-
- 2 modified
-
configuration.txt (modified) (1 diff)
-
fastcgi.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.3.x/doc/configuration.txt
r391 r484 296 296 Default: enabled 297 297 298 server.range-requests 299 defines if range requests are allowed or not. 300 301 Default: enabled 302 303 298 304 SSL engine 299 305 `````````` -
branches/lighttpd-1.3.x/doc/fastcgi.txt
r391 r484 101 101 "max-procs" => <integer>, # OPTIONAL 102 102 "max-load-per-proc" => <integer>, # OPTIONAL 103 "idle-timeout" => <integer> # OPTIONAL 103 "idle-timeout" => <integer>, # OPTIONAL 104 "broken-scriptfilename" => <boolean> # OPTIONAL 104 105 ) 105 106 ), … … 132 133 If disabled, the server forward request to 133 134 FastCGI interface without this check. 135 :"broken-scriptfilename": breaks SCRIPT_FILENAME in a wat that 136 PHP can extract PATH_INFO from it (default: disabled) 134 137 135 138 If bin-path is set: … … 429 432 ) 430 433 434 As a last addition you have to make should that both PHP_SELF and 435 PATH_INFO work as expected: :: 436 437 fastcgi.server = ( ".php" => 438 ( "localhost" => 439 ( "socket" => "/tmp/php-fastcgi.socket", 440 "bin-path" => "/usr/local/bin/php", 441 "bin-environment" => ( 442 "PHP_FCGI_CHILDREN" => "16", 443 "PHP_FCGI_MAX_REQUESTS" => "10000" 444 ), 445 "bin-copy-environment" => ( 446 "PATH", "SHELL", "USER" 447 ), 448 "broken-scriptfilename" => "enable" 449 ) 450 ) 451 ) 452 453 Why this ? the ``cgi.fix_pathinfo = 0`` would give you a working ``PATH_INFO`` 454 but no ``PHP_SELF``. If you enable it, it turns around. To fix the 455 ``PATH_INFO`` php needs a SCRIPT_FILENAME which is against the CGI spec, a 456 broken-scriptfilename. With ``cgi.fix_pathinfo = 1`` in php.ini and 457 ``broken-scriptfilename => "enable"`` you get both. 458 431 459 432 460 External Spawning

