7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

URL毎にエラードキュメントを設定する

Posted at

サイトで設定しているエラードキュメントとは別に、URL毎にエラードキュメントを設定する方法。
バックエンドの障害発生時にapi特有のエラー内容を記述したxmlを返したい場合に利用中。

ErrorDocument 503 /errordocument/error_503.html
<LocationMatch "/api/aaa">
    ErrorDocument 503 /errordocuments/error_503_aaa.xml
</LocationMatch>
7
7
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
7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?