Help with X-Accel-Redirect and "rewrite or internal redirection cycle" errors
Iain Barnett
iainspeed at gmail.com
Tue Jun 7 05:44:30 MSD 2011
On 6 Jun 2011, at 15:55, Maxim Dounin wrote:
>
> There are two options:
>
> 1. You understand things enough to mangle logs and configs, and
> you don't need any help with debugging.
>
> 2. You need help with debugging.
>
> Choose any one. Obviously with (1) there are no reasons to post
> anything here.
>
> If you do care enough about your actual server names but still
> need help with debugging - reproduce the problem in sandbox with
> fake names.
>
Bit harsh, there was no difference to the result from my mistake, and trying to back up a position with a false dilemma rarely works. I think you'll find it's up to me how much information I give about my projects, asking for your help doesn't mean I owe you anything, and giving your help doesn't mean you get to be rude.
>> Ah ha! Looking at the original, the server name is from one of
>> the other site's being proxied to. Does this mean I should use
>> an absolute uri for the X-Accel-Redirect header?
>
> No. The problem is still the same: redirect loop happens not in
> the server{} you provided, but in other one.
I'm finding entries for this in the access logs of a different server, so I'll see if whether on redirect the host name is being passed along.
>
> You haven't provided any info, so just wild guess: you want to
> read about proxy_ignore_headers directive. See here:
>
> http://wiki.nginx.org/HttpProxyModule#proxy_ignore_headers
Well, to say I haven't provided any info is quite a stretch, and if there was other information you thought I should give I think you would be better to say what it is, but thankyou for your help anyway, I'll give it a look.
Regards,
Iain
More information about the nginx
mailing list