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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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
Source: https://github.com/nginx/nginx/blob/release-1.15.8/src/http/ngx_http_special_response.c#L132
but can be customized: