documentation_technique:hebergementweb

Ceci est une ancienne révision du document !


Hébergement web

WIP

wp-config.php:

WP_HOME et WP_SITEURL doivent pointer sur le fqdn du site en http

if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
        $list = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']);
        $_SERVER['REMOTE_ADDR'] = $list[0];
  }
define( 'WP_HOME', 'http://hadoly.fr' ) ;
define( 'WP_SITEURL', 'http://hadoly.fr' ) ;
 
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
       $_SERVER['HTTPS']='on';

config frontal nginx doit inclure la directive:

proxy_set_header X-Forwarded-Proto https;

  • documentation_technique/hebergementweb.1678958136.txt.gz
  • Dernière modification : 03/16/2023 09:15:36
  • de thomas