Problem with multiple roots

Hi,
I am trying to find the equivalent Candy version of the following nginx.conf snippet, which looks up requested file in multiple roots(/a, /b):

    root /a; # First use root /a
    try_files $uri $uri/ $uri/index.htm $uri/index.html @mirrors; # If cannot find it in /a, try @mirrors

    location @mirrors {
        root /b; # Then use root /b
    }

Is there any solution to this problem without explicitly specifying directory names? Thanks.

There is no equivalent. Except you list it out like this.

rewrite {
    to /a/{path} /a/{path}/ /a/{path}/index.htm /a/{path}/index.html /b/{path} /b/{path}/ /b/{path}/index.htm /b/{path}/index.html
}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.