António P. P. Almeida
October 04, 2011 07:02AM
On 28 Set 2011 12h25 WEST, nginx-forum@nginx.us wrote:

> Unfortunately, PHP code in many known packages (such as Moodle)
> sometimes relies on the wrong assumption:
>
> $HTTPS = isset($HTTP_SERVER_VARS['HTTPS']) ?
> $HTTP_SERVER_VARS['HTTPS'] : 'off';
>
> Because in Apache HTTPS variable is never submitted at all in http
> mode and coders believe this is enough information to check. So, is
> there a way to never submit HTTPS=off at all if HTTPS is not
> present?

map $scheme $php_https {
default '';
https on;
}

fastcgi_param HTTPS $php_https;

--- appa

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

$https variable?

Luke Scott September 24, 2011 03:14AM

Re: $https variable?

Andrey N. Oktyabrski September 24, 2011 03:26AM

Re: $https variable?

mike September 24, 2011 03:28AM

Re: $https variable?

locojohn September 28, 2011 07:25AM

Re: $https variable?

António P. P. Almeida October 04, 2011 07:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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