Some of my static sites are definitely not configured correctly and show the default error messages. A lot of sites have dynamic content though, and are often configured like:
try_files $uri$uri/ @backend;
So any requests for files that don’t exist get routed to the backend, which usually shows its own error messages instead of Nginx’s.
And yet everyone has stumbled into them a few times.
Some of my static sites are definitely not configured correctly and show the default error messages. A lot of sites have dynamic content though, and are often configured like:
try_files $uri $uri/ @backend;
So any requests for files that don’t exist get routed to the backend, which usually shows its own error messages instead of Nginx’s.