shawn
Well-known member
Can you take the site offline with a mysql update? Or do you replace the xenforo index page?
I do this with the automysql backup script and a few lines added to the nginx config file. I don't recall if that ability was built-in to the script or if I added it later. But basically, I just created a custom 503 (Temporarily Unavailable) page. At the beginning of the script, it copies that file into the webroot. (cp /var/www/error/503.html /var/www/yoursite/) If nginx sees the file present, it rewrites all page requests to point to the custom 503 page instead. The script deletes the 503 page when it's done.