前の質問の続き
https://teratail.com/questions/72578
nginx
1server { 2listen 80; 3server_name daichan.club; 4return 301 https://$host$request_uri; 5 6proxy_set_header Host $http_host; 7proxy_set_header X-Forwarded-Proto $scheme; 8 9location / { 10proxy_pass http://127.0.0.1:8080; 11} 12} 13server { 14listen 443; 15server_name daichan.club; 16access_log off; 17 18ssl on; 19ssl_certificate /etc/letsencrypt/live/daichan.club/cert.pem; 20ssl_certificate_key /etc/letsencrypt/live/daichan.club/privkey.pem; 21ssl_session_timeout 5m; 22ssl_protocols SSLv2 SSLv3 TLSv1; 23ssl_ciphers HIGH:!aNULL:!MD5; 24ssl_prefer_server_ciphers on; 25 26location / { 27proxy_redirect off; 28proxy_set_header Host $host; 29proxy_set_header X-Real-IP $remote_addr; 30proxy_set_header X-Forwarded-Proto https; 31proxy_set_header X-Forwarded-Host $host; 32proxy_set_header X-Forwarded-Server $host; 33proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 34proxy_pass http://127.0.0.1:8080/; 35} 36}
上記の設定でhttpsへのリダイレクトはできましたが、保護されていない通信となってしまいます。
どこに原因ありますでしょうか??

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/15 15:53
2017/04/15 16:00