WordPress behind a reverse proxy

Note to self, add this to the wp-config.php file in order to tell WordPress that it’s behind an SSL terminating reverse proxy.

/* Enable SSL behind the nginx reverse proxy */
$_SERVER['HTTPS'] = 'on';

2 thoughts on “WordPress behind a reverse proxy”

Leave a Reply

Your email address will not be published. Required fields are marked *