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 8847043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:07:29+00:00 2026-06-14T12:07:29+00:00

Where does nginx store the default error pages it outputs on disk? I.E. the

  • 0

Where does nginx store the default error pages it outputs on disk? I.E. the standard 404 looking like:

404 Not Found

404 Not Found


nginx

Hopefully these are not hard-coded into the nginx source. Thanks.

  • 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-14T12:07:30+00:00Added an answer on June 14, 2026 at 12:07 pm

    Check out html folder in the nginx directory – there should be 50x pages.

    By default, I believe, all “special pages”, including 404 page are hardcoded

    static char ngx_http_error_404_page[] =
    "<html>" CRLF
    "<head><title>404 Not Found</title></head>" CRLF
    "<body>" CRLF
    "<center><h1>404 Not Found</h1></center>" CRLF
    ;
    

    Source: https://github.com/nginx/nginx/blob/release-1.15.8/src/http/ngx_http_special_response.c#L132

    but can be customized:

    server {
        ...
        error_page 404 /404.html;
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed nginx on Ubuntu 12.04. However, nginx does not seem to follow
When is it necessary to restart nginx and reload will not suffice? Does it
It seems that nginx does not support chunked requests well. But I'm trying to
How does nginx appear in the process list like this? $ ps -ef |
When you turn on the nginx rewrite log with rewrite_log on; , where does
I'm working with a source base written almost entirely in straight-c (nginx). It does,
Does NGINX or Apache benefit from a server that has either: Multi-cores, or Multiple
i would like to replace my node-http-proxy module with nginx proxy_pass module. Is it
Some help would be appreciated - keep getting Forbidden 403 error. Nginx configuration: listen
Does nginx offer a way to add the hostname (and port) in an HTML

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.