Skip to content

Instantly share code, notes, and snippets.

@dtateii
Created April 3, 2015 19:34
Show Gist options
  • Save dtateii/f99a20cb4c5719e3dab5 to your computer and use it in GitHub Desktop.
Save dtateii/f99a20cb4c5719e3dab5 to your computer and use it in GitHub Desktop.
Wordpress conf for SSL Termination at Load Balancer
/* 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