Skip to content

Instantly share code, notes, and snippets.

@nnarhinen
Created December 18, 2010 16:30
Show Gist options
  • Save nnarhinen/746633 to your computer and use it in GitHub Desktop.
Save nnarhinen/746633 to your computer and use it in GitHub Desktop.
if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == "https") {
$_SERVER['SERVER_PORT'] = 443;
$_SERVER['HTTPS'] = 'on';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment