higress-group/higress

支持nginx的error_page功能

Aperta

#1612 aperta il 20 dic 2024

 (3 commenti) (0 reazioni) (0 assegnatari)Go (1219 fork)github user discovery
area/annotationhelp wantedsig/controller

Metriche repository

Star
 (9036 stelle)
Metriche merge PR
 (Merge medio 7g 9h) (18 PR mergiate in 30 g)

Descrizione

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.

Guida contributor