how to rewrite this: apache to nginx

Igor Sysoev is at rambler-co.ru
Fri Aug 29 17:26:02 MSD 2008


On Fri, Aug 29, 2008 at 02:18:36PM +0200, Robert Gabriel wrote:

> I suppose something like this:
> 
>         location ~* \.php(/|$) {
>             fastcgi_pass   127.0.0.1:50000;
>             fastcgi_index  index.php;
>              set $path_info "";
>              if ($uri ~ \.php(/.+)$) {
>                  set $path_info $1;
>                         }
>                     fastcgi_param  SCRIPT_FILENAME 
> /srv/www/helpdesk$fastcgi_script_name;
>                     fastcgi_param  PATH_INFO        $path_info;
>                     fastcgi_param  QUERY_STRING     $query_string;
>                     fastcgi_param  REQUEST_METHOD   $request_method;
>                     fastcgi_param  CONTENT_TYPE     $content_type;
>                     fastcgi_param  CONTENT_LENGTH   $content_length;
>         }

Yes.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list