Problem with SSL
-
Hi.
I have WP installed in a sub-directory of a domain and have activated Really Simple SSL.
I am getting the following error:
System detection encountered issues
Your wp-config.php has to be edited, but is not writable.Because your site is behind a loadbalancer and is_ssl() returns false, you should add the following line of code to your wp-config.php.
//Begin Really Simple SSL Load balancing fix
$server_opts = array(“HTTP_CLOUDFRONT_FORWARDED_PROTO” => “https”, “HTTP_CF_VISITOR”=>”https”, “HTTP_X_FORWARDED_PROTO”=>”https”, “HTTP_X_FORWARDED_SSL”=>”on”, “HTTP_X_FORWARDED_SSL”=>”1”);
foreach( $server_opts as $option => $value ) {
if ((isset($_ENV[“HTTPS”]) && ( “on” == $_ENV[“HTTPS”] )) || (isset( $_SERVER[ $option ] ) && ( strpos( $_SERVER[ $option ], $value ) !== false )) ) {
$_SERVER[ “HTTPS” ] = “on”;
break;
}
}
//END Really Simple SSL
Or set your wp-config.php to writable and reload this page.I have added the above code to the WP_Config file however, there still seems to be an issue. Any ideas of what’s going wrong?
Lee
The page I need help with: [log in to see the link]
- The topic ‘Problem with SSL’ is closed to new replies.