Still confused with try_files

Igor Sysoev is at
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>:
> >> Should I try with a debug build?
> >
> > Yes, as I could not reproduce the issue.
> I've posted the log here:
> 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

More information about the nginx mailing list