5 year old Question...
Okay, I had this error, after installing my SSL Certificate and changing all links that were
https using the wp-cli.phar found here.
I tried various configurations and none seemed to resolve this, unless I set this:
It allowed me to hit the log-in page, but then was unable to actually log-in. I tried answer two but that unfortunately didn't help either, Untill I did the following change:
/** SSL */
// in some setups HTTP_X_FORWARDED_PROTO might contain
// a comma-separated list e.g. http,https
// so check for https existence
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== true)
For some reason, I do not know why - I had to change the
I'm running nginx as host and reverse proxy to nginx unit...
If anyone has any idea why that worked, Please let me know