Has anyone tried to create custom error pages to replace the standard 404 and 500 error? I’d like to change the 500 message to be a maintenance page so that during upgrades the user doesn’t just see a 500 nginx error.
I’ve tried several different things that I’ve found online and nothing is working. I thought I could update the default file under /etc/nginx/sites-available. This is what I added above the “location /” line.
Although note that error_page does support named locations.
After making the change, be sure to run sudo nginx -t before reloading and also be very aware that any change to the configuration of MiaB, even through the GUI, may revert this edit - I’m not sure how often or when nginx.conf is rewritten.
If that doesn’t work, you will have to add it to the appropriate server block or blocks in /etc/nginx/conf.d/local.conf and that is clearly rewritten on a very regular basis.
These kinds of customizations are not what MiaB supports.