Welcome! Log In Create A New Profile

Advanced

Re: FastCgi (php) 302 redirect

July 18, 2011 12:14PM
On Mon, Jul 18, 2011 at 12:08:10PM -0400, aoz wrote:
> > > Может кто сталкивался?
> >
> > nginx при работает с FastCGI
> > берёт статус и строку из
> > 1) заголовка "Status: XXXXXX",
> Игорь
> Заголовок как то проверяется?
> или что я делаю не так?
>
> Влючил на nginx fastcgi_pass_header Status
>
> вот php скрипт
>
> <?php
> header("Status: 302 Found", TRUE, 302);
> header("Location: tv_login.php");
> error_log(print_r(headers_list(), true));
> ?>
>
> вот контрольная печать в error_log
> [18-Jul-2011 17:47:15] Array
> (
> [0] => X-Powered-By: PHP/5.1.6
> [1] => Status: 302 Found
> [2] => Location: tv_login.php
> )
> вот tcpdump
>
> T 2011/07/18 18:53:36.233844 xx.xx.xx.58:80 -> 10.0.1.4:43225 [AP]
> HTTP/1.1 302.
> Server: nginx.
> Date: Mon, 18 Jul 2011 15:53:29 GMT.
> Content-Type: text/html.
> Transfer-Encoding: chunked.
> Connection: keep-alive.
> Keep-Alive: timeout=20.
> Status: 302.
> X-Powered-By: PHP/5.1.6.
> Status: 302 Found.
> Location: tv_login.php.
>
> Кто этот первый Status 302 впихивает. nginx или
> php? У php по мануалам true 302 должно
> затереть
> дубликат.
> в общем надо собирать стенд со связкой
> fast-cgi->nginx по tcp
> и смотреть.

Включите отладочный лог nginx'а:
http://nginx.org/en/docs/debugging_log.html


--
Игорь Сысоев
http://sysoev.ru

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

FastCgi (php) 302 redirect

aoz July 18, 2011 08:15AM

Re: FastCgi (php) 302 redirect

Mikhail Mazursky July 18, 2011 10:50AM

Re: FastCgi (php) 302 redirect

aoz July 18, 2011 11:25AM

Re: FastCgi (php) 302 redirect

Igor Sysoev July 18, 2011 11:34AM

Re: FastCgi (php) 302 redirect

aoz July 18, 2011 12:08PM

Re: FastCgi (php) 302 redirect

Igor Sysoev July 18, 2011 12:14PM

Re: FastCgi (php) 302 redirect

aoz July 18, 2011 12:29PM

Re: FastCgi (php) 302 redirect

aoz July 18, 2011 01:31PM

Re: FastCgi (php) 302 redirect

Alex Vorona July 18, 2011 12:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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