php redirect from https to http does not work
===

I have the following issue:

environment:

nginx web server running php-fpm, php 5.3.

when I try to force user leave https area, it redirect to https page again, which create infinity loop.

Test file:

header('Location: http://www.domain.com/phpinfo.php'); exit;

but it redirects to **https**://www.domain.com/phpinfo.php instead.

Any ideas? nginx\php setup is pretty common. No general http->https redirects in nginx config file.

Thanks