Welcome! Log In Create A New Profile

Advanced

Re: internally redirected requests

Edho Arief
November 21, 2012 06:22AM
On Wed, Nov 21, 2012 at 6:12 PM, nri.pl <nginx-forum@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.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

internally redirected requests

nri.pl November 21, 2012 06:12AM

Re: internally redirected requests

Edho Arief November 21, 2012 06:22AM

Re: internally redirected requests

nri.pl November 21, 2012 06:51AM

Re: internally redirected requests

Ruslan Ermilov November 21, 2012 10:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready