ForceType directive in nginx fastcgi?

Paul plin at lexico.com
Thu Feb 22 21:36:10 MSK 2007


> Setting PATH_INFO is more complicated.
> So you need something like:
> 
> location /search {
>            set  $path_info  "";
> 
>            if ($uri ~ "^/search(.+)") {
>                set  $path_info  $1;
>            }
> 
>            fastcgi_pass   127.0.0.1:9000;
>            fastcgi_param  SCRIPT_FILENAME /root/path/search.php;
>            fastcgi_param  PATH_INFO       $path_info;
>            include        fastcgi_params;
> }
> 

Yes! That works after I recompiled PHP without path-info-check, and without
discard-path support.

Thanks so much! Have a great vacation!

paul







More information about the nginx mailing list