Apache is acting as a frontend to another (Rails) server that is responsible for handling the requests. How can I make Apache return a static maintenance page when the backend is down (or unreachable in the past minutes)?
The current Apache configuration is basically
RewriteRule ^/(.*)$ http://backend.example.net:9002/$1 [P,L]
ProxyPassReverse / http://backend.example.net:9002/