1. AWS의 Beanstalk 서비스를 이용해 워드프레스를 설치/배포
2. SSL(https) 설정을 위해 simple ssl 플러그인 설치 ( 워드프레스 플러그인 )
3. 로드밸런스 https 설정 후 http -> https 설정 시 many too redirect 오류 발생
해결책
wp-config.php 파일에 아래 코드 추가
/** SSL */
define('FORCE_SSL_ADMIN', true);
// in some setups HTTP_X_FORWARDED_PROTO might contain
// a comma-separated list e.g. http,https
// so check for https existence
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) {
$_SERVER['HTTPS']='on';
}
감사합니다. 😄