internally redirected requests

Edho Arief edho at myconan.net
Wed Nov 21 11:21:07 UTC 2012


On Wed, Nov 21, 2012 at 6:12 PM, nri.pl <nginx-forum at nginx.us> wrote:
> How to do internal redirect (which is the best way)? I do not want to apply
> to this "include".
> Maybe I can do something like this:
>
> location /a { alias @app; }
> location /b { alias @app; }
>
> location @app { ... }
>
> Should I use to this "error_page" or "try_files" if I do not dealing with
> static files ?
>

you can use `try_files /nonexistent @app;` though I'm interested why
don't you want to use include.



More information about the nginx mailing list