CloudFront で SSL/TLS を使用するついをまとめています。
構成
カスタムドメイン
オリジン
| オリジン |
オリジンドメイン |
| オリジン1 |
origin1.example.com |
| オリジン2 |
origin2.example.com |
ビヘイビア
| パスパターン |
オリジン |
| https://example.com |
origin1.example.com |
| https://example.com/blog |
origin2.example.com |
Apache
Name ベースの VirtualHost を設定している。
設定ファイルは以下 ServerName ディレクティブを指定したファイルのみとして進める。
| オリジン |
ServerName ディレクティブ |
| origin1.example.com |
origin1.example.com |
| origin2.example.com |
origin2.example.com |
SSL
- CloudFront:ACM
- オリジン 1
- origin1.example.com(オリジンリクエストポリシーが AllViewer でも必要)
- example.com
- オリジン 2
- origin2.example.com(オリジンリクエストポリシーが AllViewer でも必要)
- example.com