Having a WordPress blog behind a Nginx reverse proxy secured with SSL

Par défaut

Add to your wp-config.php file on the backend server the following lines :

if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
       $_SERVER['HTTPS']='on';

And add to your Nginx reverse proxy config file this line :

proxy_set_header X-Forwarded-Proto https;

P.S. if you have some mixed content (insecure) just install the plugin WordPress HTTPS (SSL)

Source: WordPress

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Time limit is exhausted. Please reload CAPTCHA.

https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_bye.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_good.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_negative.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_scratch.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_wacko.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_yahoo.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_cool.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_heart.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_rose.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_smile.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_whistle3.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_yes.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_cry.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_mail.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_sad.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_unsure.gif 
https://root.sx/wp-content/plugins/wp-monalisa/icons/wpml_wink.gif