バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

プラグイン > バグ報告・利用に関する質問 > 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へリダイレクトできるよう設定したいです。

お忙しい中大変恐縮ですが、ご確認のほどよろしくお願いいたします。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
 » http_cacheを有効の際、proxyを介するとhttp→httpsへのリダイレクトができない ktom 2017/8/7 13:25
     Re: http_cacheを有効の際、proxyを介するとhttp→httpsへのリダイレクトができない tao_s 2017/8/13 21:12

 



ログイン


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

統計情報

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

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1638
8
red
1570
9
mcontact
1285
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
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.