RFC2616, 503 Service Unavailable
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server
How to configure Apache 2.2 to serve particular name based virtualhost 503 code with custom HTML page?
@temoto
To specify a 503 for bots and a maintenance page for humans, try the following
You could use mod_rewrite:
The
RewriteCond
directive makes sure that no additional internal error occurs when redirecting to a custom error document.503 Temporarily Unavailable, with trigger
If the
maintenance.trigger
file exists, Apache will serve up a503 Service Unavailable
response. To serve up a custom "down for maintenance" page, useErrorDocument
to specify the file, like so:Enjoy!