Last active
August 29, 2015 14:09
-
-
Save k4zuki02h4t4/411579508e4106a2eecb to your computer and use it in GitHub Desktop.
Nginx SSL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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