0
1

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.

Azure WebAppsでnode.jsアプリ 500 or 404カスタムエラーページが上書きされてしまう

Posted at

Azure WebAppsでnode.jsアプリ作成時。
httpステータスコード500や404用にカスタムページを用意したつもりでも、以下のような文言で上書きされてしまったあなた。

500
The page cannot be displayed because an internal server error has occurred.

400
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

カスタムエラーページを表示したい場合、Web.configの内に以下を追記する必要があるらしい。

<httpErrors existingResponse="PassThrough" />

参考↓
https://www.iis.net/configreference/system.webserver/httperrors

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?