https://2nd-train.net/ というWebサービスを運営しています。
基本的にSSLでのアクセスで提供していますが、
http://2nd-train.net でアクセスすると
https://2nd-train.net// に飛ばされてしまいます。
なぜ
https://2nd-train.net/ ではなく、https://2nd-train.net// になってしまうのか
わかる人教えてください
環境は nginx version: nginx/1.13,cakephp2.9.1 です。
lang
1xxx.conf 2 server { 3 listen 80; 4 server_name 2nd-train.net; 5 return 301 https://$host$request_uri; 6//その他諸々は省略 7} 8 9 10 server { 11 listen 443 ssl http2; 12 server_name 2nd-train.net; 13 client_max_body_size 100M; 14 root [cakephpの置いてあるフォルダ]/cake/app/webroot; 15 index index.php; 16//SSL設定等は省略 17 18 location ~ .php$ { 19 try_files $uri =404; 20 fastcgi_pass 127.0.0.1:9000; 21 fastcgi_keep_conn on; 22 fastcgi_index index.php; 23 fastcgi_param SCRIPT_FILENAME $document_ro ot$fastcgi_script_name; 24 include fastcgi_params; 25 } 26 27 location / { 28 try_files $uri $uri/ /index.php?$uri&$args; 29 } 30 31} 32
あなたの回答
tips
プレビュー