higress-group/higress

支持nginx的error_page功能

开放

#1,612 创建于 2024年12月20日

 (3 条评论) (0 个反应) (0 位负责人)Go (1,219 个派生)github user discovery
area/annotationhelp wantedsig/controller

仓库指标

星标
 (9,036 个星标)
PR 合并指标
 (平均合并 7天 9小时) (30 天内合并 18 个 PR)

描述

Why do you need it?

默认在一些常见的异常页面,比如404, 503等,为了给用户一个好的信息反馈,会单独定制一些页面。nginx支持这块功能使用的配置指令是error_page, 具体用法参见: https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page

How could it be?

具体功能类似nginx的error_page功能,可以配置什么返回码对应哪些页面,这个页面可能是存储在oss,也可能是在某个服务上的。 比如如果页面请求返回404,整体返回404的一个提示页面。

Other related information

Add any other context or screenshots about the feature request here.

贡献者指南