バージョン選択

フォーラム

メニュー

オンライン状況

91 人のユーザが現在オンラインです。 (81 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 91
もっと...

サイト内検索

プラグイン > バグ報告・利用に関する質問 > 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
居住地: 東京
投稿: 796
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周りの設定がおかしそうです。


----------------
EC-CUBEカスタマイズ相談してください。
緊急のEC-CUBEの障害対応
EC-CUBEカスタマイズブログ

スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,300名です
総投稿数は109,692件です

投稿数ランキング

1
seasoft
7365
2
468
3217
3
AMUAMU
2712
4
nanasess
2303
5
umebius
2085
6
yuh
1818
7
h_tanaka
1610
8
red
1568
9
mcontact
1240
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
796
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.