Skip to content

Instantly share code, notes, and snippets.

@pedrolopesme
Created August 23, 2011 13:17
Show Gist options
  • Save pedrolopesme/1165072 to your computer and use it in GitHub Desktop.
Save pedrolopesme/1165072 to your computer and use it in GitHub Desktop.
Magento - HTTPS problem
if( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) ) {
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment