how to rewrite this: apache to nginx

Robert Gabriel lists at ruby-forum.com
Fri Aug 29 16:18:36 MSD 2008


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;
        }
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list