wordpress behind proxy pass - admin authentication does't work -
i in trouble...
i have wordpress blog behing ssl reverse proxy.
wordpress lives inside docker.
everything works fine, except admin panel.
when try login, got message
"you not have sufficient permissions access page"
i got 2 cookies, "wordpress_loggedin_xxxxx" , "wordpress_sec_xxxxx" because on ssl connection.
on docker local machine works, not database prefix issue.
here screenshot of admin panel, cookies
please me! thx in advance guys!!
ok, got solution! ... write here, maybe can helpful.
in wp-config.php,
i added these lines:
if (strpos($_server['http_x_forwarded_proto'], 'https') !== false) $_server['https']='on';
before in code.
previously, pasted code above fix admin infinite auto-loop @ end of file.
hope helps!!!
Comments
Post a Comment