Changeset 484

Show
Ignore:
Timestamp:
07/29/2005 09:12:40 AM (3 years ago)
Author:
jan
Message:

documented the new options

Location:
branches/lighttpd-1.3.x/doc
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.3.x/doc/configuration.txt

    r391 r484  
    296296  Default: enabled 
    297297 
     298server.range-requests 
     299  defines if range requests are allowed or not. 
     300   
     301  Default: enabled 
     302 
     303 
    298304SSL engine 
    299305`````````` 
  • branches/lighttpd-1.3.x/doc/fastcgi.txt

    r391 r484  
    101101          "max-procs" => <integer>,   # OPTIONAL 
    102102          "max-load-per-proc" => <integer>, # OPTIONAL 
    103           "idle-timeout" => <integer> # OPTIONAL 
     103          "idle-timeout" => <integer>, # OPTIONAL 
     104          "broken-scriptfilename" => <boolean> # OPTIONAL 
    104105        ) 
    105106      ),  
     
    132133                If disabled, the server forward request to  
    133134                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) 
    134137 
    135138  If bin-path is set: 
     
    429432                   ) 
    430433 
     434As a last addition you have to make should that both PHP_SELF and  
     435PATH_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 
     453Why this ? the ``cgi.fix_pathinfo = 0`` would give you a working ``PATH_INFO``  
     454but 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 
     456broken-scriptfilename. With ``cgi.fix_pathinfo = 1`` in php.ini and 
     457``broken-scriptfilename => "enable"`` you get both. 
     458 
    431459 
    432460External Spawning