Howto setting wordpress working under proxy nginx
This is my note howto setting WordPress
First add this at wp-config.php
define('FORCE_SSL_ADMIN', true);
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false){
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
}
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
define('WP_HOME', 'https://domain name');
define('WP_SITEURL', 'https://domain name');
…Howto setting wordpress working under proxy nginxRead More »