wordpress-vm icon indicating copy to clipboard operation
wordpress-vm copied to clipboard

Add this behind Reverse Proxy that serves SSL

Open enoch85 opened this issue 9 years ago • 1 comments

define('FORCE_SSL_ADMIN', true);
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
        $_SERVER['HTTPS']='on';

enoch85 avatar Aug 17 '16 10:08 enoch85

+this in Nginx

proxy_set_header X-Forwarded-Proto https;

enoch85 avatar Nov 15 '16 21:11 enoch85