wordpress-vm
wordpress-vm copied to clipboard
Add this behind Reverse Proxy that serves SSL
define('FORCE_SSL_ADMIN', true);
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
+this in Nginx
proxy_set_header X-Forwarded-Proto https;