We have a service configured that must go down once a week for maintenance as it is dependent on the ERP system which goes down. I'm wondering if it's possible for Apache to stop forwarding requests to Tomcat and instead serve up static content?
I imagine I could achieve this by setting up a cron job to a2enable-site
and a2disable-site
respectively by having a static site that gets switched out for the proxy site though I was wondering if there was a different approach I could use.
-Brett
mod_rewrite
can do rules based on the current time. Something like this untested snippet might just work: