I found this little tidbit useful. I guess it’s not that hard to figure out yourself, but it might make a nice FAQ. Basically, in the midst of moving some of my server stuff over to Slicehost, I knew my web server wouldn’t be able to respond for a few minutes, so I wanted to put a reasonable looking “Sorry, we’ll be back soon” message, rather than just letting it fail. On a Debian or Ubuntu system, this ought to be enough:
/etc/apache2/apache2.conf file, the last line looks like so:
Comment it out, and put this in instead:
#Include /etc/apache2/sites-enabled/ AliasMatch .* /var/www/backsoon.html
All it takes is an
/etc/init.d/apache2 reload to make the change take effect, and another one once you’re up and running again.