Welcome! Log In Create A New Profile

Advanced

php HTTPS $_SERVER variable?

August 15, 2009 02:36AM
Some of our software relies on the $_SERVER['HTTPS'] PHP variable to be set
to "on" when accessing pages via https://. So far I've found:

fastcgi_params HTTPS on;

but this turns it on for all pages, regardless of HTTP or HTTPS request
setting.

What am I missing?

When I add the HTTPS on parameter, our code works (i.e. detects HTTPS in
$_SERVER) but for every page, HTTP or HTTPs
Subject Author Posted

php HTTPS $_SERVER variable?

iberkner August 15, 2009 02:36AM

Re: php HTTPS $_SERVER variable?

mike August 15, 2009 01:30PM

Re: php HTTPS $_SERVER variable?

iberkner August 15, 2009 11:05PM

Re: php HTTPS $_SERVER variable?

Marcus Clyne August 15, 2009 11:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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