How to set up WordPress behind a secure reverse proxy using NGINX
After getting your SSL-certificate and have enabled HTTPS redirection in NGINX, WordPress will not work due to mixed content (HTTP and HTTPS) – you won’t be able to login. In order to fix this you first have to add this at the very start of your wp-config.php. define(‘FORCE_SSL_ADMIN’, true); if ($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’) $_SERVER[‘HTTPS’]=’on’; Then Read more about How to set up WordPress behind a secure reverse proxy using NGINX[…]