📜  反向代理背后的 Wordpress - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:52.306000             🧑  作者: Mango

代码示例1
/* SSL Settings */
define('FORCE_SSL_ADMIN', true);

/* Turn HTTPS 'on' if HTTP_X_FORWARDED_PROTO matches 'https' */
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) {
    $_SERVER['HTTPS'] = 'on';
}