Forum Moderators: phranque
During the move I need to point ALL web and portal requests (HTTP and HTTPS) to a page on the current web server that says the server is down for maintenance.
I am fairly new to Apache and have been struggling with this for a few days. The only thing I have come up with is to change all the directories to point to the directory with the maintenance page and add ErrorDocument handlers to show the maintenance page for any missing documents. Is there an easier way to do this (maybe using mod_rewrite)? Thanks.
My solution so far is to change all the DocumentRoots (primary and all virtual hosts) to point to a new /offline directory I made with an index.html file that displays a nice message. Since all requests except for the default page will fail (404 file not found) I was going to add ErrorDocument entries to point to / to display the nice message. This seems like a cludgy way to do this. I was hoping someone could point me to a better way of doing this. Thanks.