I have the container running and serving my web pages. However, when I enter the URL of a non-existent page, I get the home page (i.e., /index.html). How can I have 404 errors display a custom error page (e.g., /errors/404.html)?
I’ve tried adding the following to the /nginx/nginx.conf and/or /nginx/site-confs/default and restarting the container, but there’s no change:
error_page 404 /errors/404.html;
location = /errors/404.html {
root /config/www;
internal;
}
Am I missing something? Thanks in advance for any help/feedback.