with a little digging thru $_SERVER vars, it appears that nginx config of
proxy_set_header HTTPS on;
does NOT set
$_SERVER['HTTP']=on
, but rather, prepends the meta key (for all proxy_set_header vars?) with "HTTP_", so that,
$_SERVER['HTTP_HTTPS']=on
as I thinkg abt it, as the apache server itself is NOT serving https://, HTTPS=on would be, technically, incorrect in this scenario.
in any case, editing in,
advagg_js_cdn/advagg_js_cdn.module
- $schema = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https' : 'http';
+ $schema = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO' || (isset($_SERVER['HTTP_HTTPS']) && $_SERVER['HTTP_HTTPS'] == 'on')] == 'https')) ? 'https' : 'http';
results, correctly, in,
script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"
^^^^^
相关
windows 下安装 php_imagick.dll(Image magick Functions)
将远程服务器上的图片保存在自己的服务器上
MolyX BOARD 2.5.0 多语言标准版 发布
用sql语句来创建并赋予mysql用户权限
无限级下拉菜单代码:
用PHP fsockopen写的HTTP下载的类
utf-8为什么在国外流行了
研究一下pear
mysql 几则
让我伤心的flickr api