how to rewrite this: apache to nginx

Robert Gabriel lists at
Fri Aug 29 16:18:36 MSD 2008

I suppose something like this:

        location ~* \.php(/|$) {
            fastcgi_index  index.php;
             set $path_info "";
             if ($uri ~ \.php(/.+)$) {
                 set $path_info $1;
                    fastcgi_param  SCRIPT_FILENAME 
                    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;
Posted via

More information about the nginx mailing list