#
ドキュメント

Document

自分のための備忘録です。

CloudFront と SSL

CloudFront で使用する SSL について記載します。

構成

カスタムドメイン

ドメイン
example.com

オリジン

オリジン オリジンドメイン
オリジン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