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にリダイレクトされる
-
backendForceSecureがtrue -
backendForceSecureがnullかつapp.debugがfalse
親切な機能ではあるが、Webサーバの設定やロードバランサーでhttpsへリダイレクトかけていたりしていると不都合が起こるようだ。
なので、別途httpsの対応をしている場合はbackendForceSecure => falseとする。