alibaba / alibaba/nginx-http-sysguard

how to override nginx default page

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
254
Forks
84
PR merge metrics
No merged PRs in 30d

Description

```
error_page 500 502 503 504 /torii_50x.html;

location = /torii_50x.html {
root /usr/local/nginx/html/;
}

location /loadlimit {
return 503;
}
```
This configuration still returns default nginx 503 error page, but not the content of `torii_50x.html`

can you please explain how to override default nginx error page for sysguard module?

Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported configuration and request /loadlimit to trigger the sysguard 503 response. Compare nginx's error_page handling with the module's response path; done means the configured torii_50x.html content is returned instead of nginx's default 503 page.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, nginx
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.