Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8445859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:46:12+00:00 2026-06-10T09:46:12+00:00

When looking at the documentation for nginx’s error_page directive, it seems that one has

  • 0

When looking at the documentation for nginx’s error_page directive, it seems that one has to manually list out every possible status code that nginx (or an upstream server) could return.

For example:

error_page   404          /404.html;
error_page   502 503 504  /50x.html;
error_page   403          http://example.com/forbidden.html;
error_page   404          = @fetch;

Is there anyway of producing a wildcard for ALL status codes that are not specified directly… For example:

error_page   404          /404.html;
error_page   5xx          /50x.html;

or

error_page   404          /404.html;
error_page   502 503 504  /50x.html;
error_page   @catchall    /5xx.html;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:46:14+00:00Added an answer on June 10, 2026 at 9:46 am

    It is not possible.

    Moreover, it is not recommended to blindly list all codes, as

    • nginx allows to redefine all response codes, including ones you don’t really want to redefine except in a few very specific situations (e.g. you don’t normally want to redefine 304 (Not Modified), and probably not 302 (Found) unless there are very specific reasons);
    • redefining some of the error codes might cause more harm than good (e.g. redefining 400 (Bad Request) is a bad idea).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Been scouring the internet looking for documentation that gives a list of acceptable strings
From looking over the documentation, it seems that the form clean() method is only
Looking through the documentation for CFDataRef I can't see anything that will compress a
Looking into the documentation it says that the Rollback method can throw when the
I've been looking for documentation for cocos2d-x but it seems to be really really
Looking at the documentation on the web, it seems to be a common practise
When looking at the documentation for WPF (e.g. for Selector.SelectedItem ), I noticed that
I was looking documentation at Lawnchair website and I am trying to figure out
Looking into Kohana documentation, i found this really usefull function that they use to
I was looking over the documentation trying to find anything that will allow me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.