Still confused with try_files

Igor Sysoev is at rambler-co.ru
Fri Mar 20 16:37:28 MSK 2009


On Fri, Mar 20, 2009 at 12:38:45PM +0100, Otto Bretz wrote:

> 2009/3/19 Igor Sysoev <is at rambler-co.ru>:
> >> Should I try with a debug build?
> >
> > Yes, as I could not reproduce the issue.
> 
> I've posted the log here: http://www.giuntilabs.net/files/nginx/notworking.log
> 
> As far as I can tell drupal sends a 404 message since it cannot handle
> "?q=/members/user/register". It expects "?q=user/register".

Currently, this is available in 0.7.43 only with location regex captures:

        location ~ \.php$ {
            fastcgi_pass   ...
        }

        location ~^/members(.+)$ {
            try_files  $uri  $uri/  /members/index.php?q=$1$is_args$args;
        }

I'm not sure is it easy possible to backport location regex captures
to 0.6.x, since there are many changes in location code in 0.7.x.


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





More information about the nginx mailing list