LoginSignup
6
3

More than 3 years have passed since last update.

S3 で SPA をホスティングするとき、アクセスする URL が 404 のときに index.html を返す方法

Posted at

概要

S3 で SPA をホスティングするときに、404のときにindex.htmlを返してくれないと正常にSPAを動かせません。
Cloud Front であればエラーコード時の返すページを設定できますが、S3のみでホスティングしたときのやり方で少しはまったので共有です。

やり方

エラードキュメントに index.html を設定すればよいだけです。

スクリーンショット 2020-01-19 23.39.53.png

6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3