how to rewrite this: apache to nginx

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


On Fri, Aug 29, 2008 at 01:45:59PM +0200, Robert Gabriel wrote:

> Done that, doesnt work, I really cant get the idea why it doesnt work... 
> This is shitty :(
> 
> P.S. this is cerb4 (cerberus helpdesk)

Then you probably need to add PATH_INFO:

        location  ~* \.php(/|$) {

             set $path_info "";

             if ($uri ~ \.php(/.+)$) {
                 set $path_info $1;
             }

             ...
             fastcgi_param   PATH_INFO  $path_info;
             ...
        }


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





More information about the nginx mailing list