LoginSignup
0
2

More than 1 year has passed since last update.

Concrete CMS を AWS ELB 等、ロードバランサー配下で使う方法

Last updated at Posted at 2017-02-21

Concrete CMS v5.7 以降

Concrete CMS ログイン直後に直ぐにログアウトされてしまう現象が起こる場合があります。

Load Balancer (AWS ELB 等), Cloudflare などのサービスを利用していると起こる現象です。

その場合は、下記のコードを、/application/config/concrete.php にアップロードしてください。

<?php
/**
 * Always trust incoming request.
 * 
 * For more detail, see: http://symfony.com/doc/current/cookbook/request/load_balancer_reverse_proxy.html
 */
// Get remote address
$remoteIp = $_SERVER['REMOTE_ADDR'];
return array(
    'security' => array(
        'trusted_proxies' => array(
            'ips' => array($remoteIp),
        ),
    ),
);

これでログアウトしなくなります。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2