We have an architecture whereby we are hosting multiple sites in NGINX. Each NGINX site has its own config.Each of these sites points to a common codebase but points to a different domain name and its associated SSL.
What we want to do is during maintenance is to show a common Maintenance.html page once the request for the page is made. While, we can go into the website.conf file for each website and insert a rewrite rule, it is not a complete solution - its more of a hack which we are trying to avoid.
We would like to implement this in the nginx.conf file at the root level, whereby any request that comes in over (443) is to be intercepted (before its own config file is loaded) and redirected to a common Maintenance.html page.
How can this achieved at the nginx.conf file level?
Thanks