I have a website running on a Linux/Apache/Tomcat stack that needs to be automatically taken offline every few months for server maintenance, which will last an arbitrary amount of time. What are some options for getting Apache to put up and take down a "server maintenance" page?
I need to be able to control this via shell script. (The answers that Google provided revolve around manually editing the server configuration, and I don't want to be in the office at 3 am!) I suppose I could make the script drop in an .htaccess file and delete it when it's done, but that seems less than graceful.
Answer commentary:
xsaero00's answer looks like the best-practices answer, although what I'll do is probably more like Dan's answer because the third-party hosting provider controls the load balancer and I don't want to deal with that mess. Thanks!