Re: 常時SSL化について

2016年6月13日 at 10:12

takuro hishikawa様

ありがとうございます、
app.phpの追記はこれで良いのでしょうか?
添付ファイルを拡張子を変えてつけています

変化は感じられずです。

結果はこうでています。
IPとURLは伏字にしています。

http://www.****/ccm/request_test

Application environment:
production
Client IP:
153.142.***.***
Host:
www.***
Port:
80
Scheme:
http
Secure:
false
Canonical URL:
http://www.****/
Get all headers:
array(9) {
["Host"]=>
string(17) "www.****"
["Upgrade-Insecure-Requests"]=>
string(1) "1"
["User-Agent"]=>
string(120) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36"
["Accept"]=>
string(74) "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
["Accept-Encoding"]=>
string(23) "gzip, deflate, sdch, br"
["Accept-Language"]=>
string(23) "ja,en-US;q=0.8,en;q=0.6"
["Cookie"]=>
string(75) "CONCRETE5=4a40359bc45a4e6d830d76f28d72238a; _ga=GA1.3.1533531430.1465778317"
["X-Sakura-Forwarded-For"]=>
string(15) "153.142.***.***"
["Connection"]=>
string(5) "close"
}


となっています。

宜しくお願いします。

添付: app.txt
タグ:

Re: 常時SSL化について

2016年6月14日 at 8:14
うーん、うまくいかないですね。一度、一部コメントアウトしてみてもらえますか。強制的にHTTPS状態になると思うのですが。。

// if ($request->headers->has('HTTP_X_SAKURA_FORWARDED_FOR')) {
$request->server->set('HTTPS', 'on');
// }
 

Re: 常時SSL化について

2016年6月14日 at 10:46
hishikawa様ありがとうございます。
試してみました。

ページが開けません
多くのリダイレクトが発生しています。

という画面になりました。

昨日とポートが変わってました。

Application environment:
production
Client IP:
153.142.xxx.xxx
Host:
http://www.xxxxxx
Port:
443
Scheme:
https
Secure:
true
Canonical URL:
http://www.xxxxxx/
Get all headers:
array(9) {
["Host"]=>
string(17) "www.xxxxxx"
["Upgrade-Insecure-Requests"]=>
string(1) "1"
["User-Agent"]=>
string(120) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36"
["Accept"]=>
string(74) "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
["Accept-Encoding"]=>
string(23) "gzip, deflate, sdch, br"
["Accept-Language"]=>
string(23) "ja,en-US;q=0.8,en;q=0.6"
["Cookie"]=>
string(210) "ConcreteSitemap-select=; ConcreteSitemap-expand=1; ConcreteSitemap-active=202; ConcreteSitemap-focus=202; dashboardPanelStatus=closed; CONCRETE5=d1e0a88a0dd7a55d11d5eed9c7332947; _ga=GA1.3.1533531430.1465778317"
["X-Sakura-Forwarded-For"]=>
string(15) "153.142.xxx.xxx"
["Connection"]=>
string(5) "close"
}
 

Re: 常時SSL化について

2016年6月14日 at 10:55
ポートとスキーマはhttpsに変更できたので、あと少しという感じですが、うまくいきませんね。