0

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/
gioele
  • 194
  • 2
  • 10

1 Answers1

0

You can use a custom 503 error with ErrorDocument.

See: Apache reverse proxy error page when proxied server is down

Sylvain Firmery
  • 331
  • 1
  • 4