Welcome! Log In Create A New Profile

Advanced

Re: rewrite server responses

Julien Vehent
October 05, 2010 07:46AM
On Tue, 05 Oct 2010 13:37:52 +0200, Julien Vehent <julien@linuxwall.info> wrote:
> On Tue, 5 Oct 2010 14:55:22 +0400, Maxim Dounin <mdounin@mdounin.ru> wrote:
>> Hello!
>>
>> As long as you use fastcgi and your fastcgi application
>> returns wrong redirect - you should convince it to return correct
>> one by providing appropriate fastcgi_param's.
>>
>> Changing fastcgi_param SERVER_PORT to 80 should be enough as far
>> as I understand your case.
>>
>> Rewriting of 'Location' header returned by backend only available
>> for proxy (see proxy_redirect directive), where it's not possible
>> to control backend's idea about correct server address.
>>
>> Maxim Dounin
>
> Got it ! Indeed, it was a FASTCGI environment variable. but not that one.
>
> I had
> # PHP only, required if PHP was built with --enable-force-cgi-redirect
> fastcgi_param REDIRECT_STATUS 200;
>
> And by commenting it out, I don't have this redirect problem anymore.
>

Correction, setting SERVER_PORT to 80 was necessary as well.


Julien

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

rewrite server responses

Julien Vehent October 02, 2010 05:56AM

Re: rewrite server responses

Igor Sysoev October 02, 2010 06:00AM

Re: rewrite server responses

Julien Vehent October 02, 2010 06:22AM

Re: rewrite server responses

Dayo October 04, 2010 12:20PM

Re: rewrite server responses

Julien Vehent October 04, 2010 03:42PM

Re: rewrite server responses

Maxim Dounin October 05, 2010 06:58AM

Re: rewrite server responses

Julien Vehent October 05, 2010 07:40AM

Re: rewrite server responses

Julien Vehent October 05, 2010 07:46AM

Re: rewrite server responses

Grzegorz Nosek October 05, 2010 08:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready