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"
^^^^^
http://drupal.org/node/1072812