プラグイン > バグ報告・利用に関する質問 > http_cacheを有効の際、proxyを介するとhttp→httpsへのリダイレクトができない |
バグ報告・利用に関する質問
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
ktom |
投稿日時: 2017/8/7 13:25
対応状況: −−−
|
新米 登録日: 2016/11/9 居住地: 投稿: 8 |
http_cacheを有効の際、proxyを介するとhttp→httpsへのリダイレクトができない いつもお世話になります。
下記につきまして、問い合わせさせてください。 [EC-CUBE] EC-CUBE ver 3.0.15 [OS] CentOS6.9 [PHP] 5.6 [データベース] postgresql 9.3 [WEBサーバ] Apache 2.2.15 [現象] 条件: - http_cache 有効, - SSL強制 有効, - Apacheにてhttp→httpsへのリダイレクトを設定中 - Android Chrome データセーバー オン (google proxyの有効) http → httpsへのリダイレクトがされず、 httpの通信のままシステムエラーとなる [エラー内容] Symfony\Component\HttpKernel\Exception\BadRequestHttpException: The request headers contain conflicting information regarding the origin of this request. (uncaught exception) at vendor/symfony/http-kernel/HttpKernel.php line 67 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException(code: 0): The request headers contain conflicting information regarding the origin of this request. at vendor/symfony/http-kernel/HttpKernel.php:67, Symfony\\Component\\HttpFoundation\\Exception\\ConflictingHeadersException(code: 0): The request has both a trusted Forwarded header and a trusted Client IP header, conflicting with each other with regards to the originating IP addresses of the request. This is the result of a misconfiguration. You should either configure your proxy only to send one of these headers, or configure Symfony to distrust one of them. at vendor/symfony/http-foundation/Request.php:829)" config.ymlにてプロキシサーバの設定を公式ドキュメントの内容に沿って追加しましたが、システムエラーの改善にはなりませんでした。 また、http_cacheを無効にした時、またはChrome データセーバーを無効にすることで解消されます。 proxyとcacheの影響が兼ね合っていると思うのですが、上記エラーを回避することは可能でしょうか? http_cacheを有効、かつChromeのデータセーバーを有効にした時でも、httpでアクセスした際httpsへリダイレクトできるよう設定したいです。 お忙しい中大変恐縮ですが、ご確認のほどよろしくお願いいたします。 |
tao_s |
投稿日時: 2017/8/13 21:12
対応状況: −−−
|
仙人 登録日: 2008/8/20 居住地: 東京 投稿: 799 |
Re: http_cacheを有効の際、proxyを介するとhttp→httpsへのリダイレクトができない まず、SSL通信下ではデータセーバーは機能しない様です。
https://support.google.com/chrome/answer/2392284?co=GENIE.Platform%3DAndroid&hl=ja エラーメッセージではtrusted Forwarded headerとtrusted Client IP headerが競合していると出ているので、config.ymlのproxy周りの設定がおかしそうです。
|
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |