How to Set Up a "Site Down for Maintenance" Notice with Apache
Aug 25, 2009, 00:04 (0 Talkback[s])
(Other stories by Sukrit Dhandhania)
"Enable .htaccess
There are two ways to make changes to your Apache configuration -
editing the Apache configuration directly, or using .htaccess files
and storing the configuration along with the website's files. If
you are hosted on a shared hosting platform, it is quite likely
that the setup required to permit .htaccess files to function as
desired has been done. If you are on a dedicated server, open the
Apache configuration file httpd.conf in a text editor and look for
a section containing the word AllowOverride. Make sure that this is
set to allow all over rides by setting it to AllowOverride All. Now
you should be able to use .htaccess files.
"Create the Maintenance page
Next up you need to create a maintenance page that you will direct
all the traffic to during maintenance periods. You can make it so
that it simply says "Site Down for Maintenance. We'll be Back
Soon." or you can create something more elaborate with images. I'll
leave the decision on how you want to create this page to you. We
can proceed with the assumption that a page called maintenance.html
has been created with the maintenance notice."
Complete
Story
Related Stories:
- Faceting in Solr 1.4 Enterprise Search Server(Aug 17, 2009)
- Simple Linux HA Clustering(Aug 16, 2009)
- Apache updates to 2.2.13 for security(Aug 11, 2009)
- MIPS opens Android port under Apache license(Aug 06, 2009)
- Apache and the future of open-source licensing(Jul 29, 2009)
- Contributing to Apache Open Source Projects(Jul 23, 2009)
- How To Defend slowloris DDoS With mod_qos (Apache2 On Debian [Lenny])(Jul 23, 2009)
- Five ways to help secure Apache on Linux(Jul 14, 2009)
- Apache Lucene Helps Online European Library Open Its Virtual Doors(Jul 13, 2009)
- What is new with Apache Pivot?(Jul 07, 2009)