Created
April 3, 2015 19:34
-
-
Save dtateii/f99a20cb4c5719e3dab5 to your computer and use it in GitHub Desktop.
Wordpress conf for SSL Termination at Load Balancer
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
/* Accept forwarded protocol from load balancer */ | |
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