Enable HTTP_X_FORWARDED_PROTO for Reverse Proxy/Load Balancers
-
Hello,
Firstly, thanks for the great plugin. It works very well under standard conditions.
Today I encountered a use case where I was not able to use it:
Wordpress installation on AWS behind an ELB (load balancer), which hosts SSL.I had to manually configure the following in the wp-config.php
if ($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’)
$_SERVER[‘HTTPS’]=’on’;This comes from:
define(‘FORCE_SSL_ADMIN’, true);
define(‘FORCE_SSL_LOGIN’, true);
if ($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’)
$_SERVER[‘HTTPS’]=’on’;It would be great to add that support to the plugin.
The topic ‘Enable HTTP_X_FORWARDED_PROTO for Reverse Proxy/Load Balancers’ is closed to new replies.