Here's what we use. We have this at the bottom of our <VirtualHost> sections and just uncomment and restart apache before working on the sites. #Uncomment to redirect temporarily while working on site #ErrorDocument 503 /503.php #RedirectMatch 503 ^/(?!(503\.php|503\.gif)) Not sure if that's the "right" way to do it but it works for us. --Alan On 8/21/06, Evaldas Imbrasas <evaldas@xxxxxxxxxxxx> wrote:
Hi all, Is there a way to return a custom document along with a 503 Network Unavailable response code using mod_rewrite rules? The documentation mentions the ability to return 3xx and 4xx, but not 5xx. If 5xx codes are unavailable - is there a specific reason why? In case you're wondering why I would like to return a 503 code - Google recommends returning it for 'down for maintenance' pages: http://googlewebmastercentral.blogspot.com/2006/08/all-about-googlebot.html Thanks, Evaldas --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx