Skip to content

Instantly share code, notes, and snippets.

@kervinpierre
Last active February 28, 2018 20:38
Show Gist options
  • Save kervinpierre/88a9049278723f5fe3a68cde52d51828 to your computer and use it in GitHub Desktop.
Save kervinpierre/88a9049278723f5fe3a68cde52d51828 to your computer and use it in GitHub Desktop.
// Get SSL redirect working behind NGINX SSL termination
define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment