[fpc-pascal] Re: Nginx, FastCGI and /module/action vs ?module=module&action=action
Luiz Americo Pereira Camara
luizmed at oi.com.br
Mon Jul 23 03:34:58 CEST 2012
Em 22/7/2012 21:46, leledumbo escreveu:
> Basically I just have to add this:
> http://wiki.nginx.org/HttpFastcgiModule#fastcgi_split_path_info
>
> location / {
> fastcgi_split_path_info ^((?U).+www.tkd1depok.org)(/?.+)$;
>
> fastcgi_param PATH_INFO $fastcgi_path_info;
> fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
> fastcgi_param SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
> ...
> # previous configuration
> }
>
> and that's the cause of empty PATH_INFO. I'm still having an issue with
> fpwebfile can't map uri to the correct file (it returns empty string), but I
> guess it shouldn't be difficult to solve.
>
Thanks
Luiz
More information about the fpc-pascal
mailing list