Forum Moderators: phranque
...for any reason
...so that the end user do not see a error page of service unavailable?
ErrorDocument 503 /e503.html
in the case where the backend servers go out of memory (for any reason), then the response that will come to the end user will be an error 503 (not available). To prevent this, I would understand if it is possible to configure apache so that in the face of a 503 error may display a static page that indicates to the end user that the site is under maintenance.
ErrorDocument 503 /boilerplate/repairs.html The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay.