Welcome! Log In Create A New Profile

Advanced

Internal redirects to upstream

May 06, 2009 02:24PM
Is it possible to do an internal redirect to another url within nginx?

Say I access url "/u1" which is handled by an upstream server. I need to
be able to return a redirect to url "/u2" which is not a file but needs
to be sent back to the upstream server (possibly different from the
first one).

X-Accel-Redirect seems to be for cases when /u2 maps to a file.
Subject Author Posted

Internal redirects to upstream

anomalizer May 06, 2009 02:24PM

Re: Internal redirects to upstream

Maxim Dounin May 06, 2009 02:51PM

Re: Internal redirects to upstream

anomalizer May 06, 2009 03:49PM

Re: Internal redirects to upstream

Maxim Dounin May 06, 2009 05:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 290
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