Forum OpenACS Q&A: Re: Server Down for Maintenance Page

Collapse
Posted by Brian Fenton on
Hi Ryan,

One way is to register a filter proc which, when called, redirects all requests to a "Down for maintenance" page. Then have a special admin page that turns on or off that proc.

An even easier way is to have a second tcl initialisation files for AOLserver - which just points to a "Down for maintenance" page.

Brian

Collapse
Posted by Ryan Gallimore on
Hi Brian,

Is there a way to redirect all requests via filter proc except the one to the maintenance page? Won't this require a request on the login page and therefore defeat the purpose of the redirect?

Thanks.

Collapse
Posted by Brian Fenton on
Sure, in the registered proc, make an exception for that URL.
A very old example here:
http://philip.greenspun.com/wtr/aolserver/introduction-1.html

Re the login page, I'm honestly not sure how that'll work. Try it and see!

Brian