- 333 名前:名無しさん@お腹いっぱい。 mailto:sage [2018/03/28(水) 15:01:35.79 .net]
- httpからhttpsにリダイレクトするとなぜかhttpsでもhttpsに無限リダイレクトされる
curl -v https://www.example.com/ < HTTP/2 301 < date: Wed, 28 Mar 2018 05:56:05 GMT < content-type: text/html < location: https://www.example.com/ http2 http1.1 IPv4,IPv6どれも変わらず httpの設定でreturn行を無効化してrestartすればhttps側のリダイレクトも止まるんだけどなんでこんなことが起きるの? server { listen 80; listen [::]:80; server_name www.example.com; return 301 https://$server_name$request_uri; ←ここを無効化でhttpsで接続したときの状態も変化する } server { listen 443 ssl http2; listen [::]:443 ssl http2;
|

|