Welcome! Log In Create A New Profile

Advanced

off-domain redirect using X-Accel-Redirect

April 14, 2011 01:36AM
Hello,

I'd like for my application to send a 302 redirect (or equivalent) to an off-domain location (not my server). X-Accel-Redirect appears to be the best way to achieve this, but I don't see any reference to the URI being a reference to a different server.

Is something like the following allowed?

X-Accel-Redirect: http://www.google.com;
or
X-Accel-Redirect: http://img.pics.com/mypic.gif;

I get a 404 from nginx when attempting this. I do not have any X-specific header directives (block or pass) in my configuration.

To be clear, I don't mind debugging it myself, I just want to verify that this is possible before I spend too much time on it.

Cheers,

Dean
Subject Author Posted

off-domain redirect using X-Accel-Redirect

dbanks April 14, 2011 01:36AM

Re: off-domain redirect using X-Accel-Redirect

Francis Daly April 14, 2011 03:44AM

Re: off-domain redirect using X-Accel-Redirect

dbanks April 14, 2011 07:35PM

Re: off-domain redirect using X-Accel-Redirect

mike April 14, 2011 08:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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