LoginSignup
0
0

More than 3 years have passed since last update.

MindSphere/Cloud Foundryでカスタムエラーページを利用する方法

Posted at

概説

MindSphereまたはCloud Foundryでカステムエラーページにリダイレクトする方法について説明します。

Staticfileを作る

index.htmlなどがあるディレクトリにStaticfileというファイルを作ります。
中身は以下のようにしてください

Staticfile
status_codes:
  404: /404.html
  403: /403.html

これでNot Foundになると404.htmlにリダイレクトしてくれます。

pathでpush

manifest.ymlのpath要素を利用して、例えばdist以下のファイルをpushするときがあります。
このときはdist内にStaticfileを入れましょう。ルートに置いても変化はないかと思います。

0
0
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
0
0