Skip to content

Instantly share code, notes, and snippets.

@k4zuki02h4t4
Last active August 29, 2015 14:09
Show Gist options
  • Save k4zuki02h4t4/411579508e4106a2eecb to your computer and use it in GitHub Desktop.
Save k4zuki02h4t4/411579508e4106a2eecb to your computer and use it in GitHub Desktop.
Nginx SSL.
/**
* SSL Setting
*/
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === "https") {
$_SERVER['HTTPS'] = 'on';
}
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment