LoginSignup
1
0

More than 5 years have passed since last update.

OctoberCMSトラブルシューティング:管理画面で"too many redirects"でページが表示されない

Last updated at Posted at 2018-07-22

OctoberCMS管理画面で"too many redirects"でページが表示されない現象でハマりかけたので共有。

TLTR

結論から言うと、config/cms.phpの下記設定をfalseにすることで解決できるかも。

    /*
    |--------------------------------------------------------------------------
    | Back-end force HTTPS security
    |--------------------------------------------------------------------------
    |
    | Use this setting to force a secure protocol when accessing any back-end
    | pages, including the authentication pages. If set to null, this setting
    | is enabled when debug mode (app.debug) is disabled.
    |
    */

    'backendForceSecure' => false,

詳細

下記のいずれかの場合、/backend/*へのアクセスが自動的にhttpsにリダイレクトされる

  • backendForceSecuretrue
  • backendForceSecurenullかつapp.debugfalse

親切な機能ではあるが、Webサーバの設定やロードバランサーでhttpsへリダイレクトかけていたりしていると不都合が起こるようだ。

なので、別途httpsの対応をしている場合はbackendForceSecure => falseとする。

1
0
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
1
0