🏠

CloudFrontでサブパスを設定する

scrap#AWS#AWSCloudFront

By jiyuujin at

今回多言語化を実施したプロフィールサイトは以下に示した通り。

https://yuukit.me/

この度ルートのみ、ミニマムな構成に /ja/en を新たに設定したことでルート (index.html) 以外のページを更新した時に遭遇した 404 エラー。

The specified key does not exist.

上記エラーは該当の Distribution で Custom Error Response を設定することで解決。

  • HTTP Error Code: 404: Not Found
  • Customize Error Response: Yes
  • Response Page Path: /index.html
  • HTTP Response Code: 200: OK

その他、メモっておきたいことがあれば随時。