Internal redirects to upstream

Arvind Jayaprakash work at anomalizer.net
Wed May 6 22:24:50 MSD 2009


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.





More information about the nginx mailing list