Set up a maintenance page during WebProd updates
Summary | This article shows how to set up a redirection page on IIS servers. |
Applies to | WebProd, AskiaVista |
Written for | Support, System admin |
Keywords | IIS, maintenance |
Pre-requisites
The IIS server needs to have one feature enabled for this to work. It's called "IIS redirect" and you can turn it on in the "Roles and Features" Panel of the Windows Server Manager interface. Details here.
Setting it up
- Download this zipped folder.
- Unzip it in the /wwwroot directory in a "Maintenance" folder.
- Edit the <article> section of the html document to fit with the client's need or template. The "mailto" link lets you define a contact email address. Don't forget to edit it as it currently points toward "someone@example.com".
- Open the IIS module and navigate to the Webprod app.
- Set the "HTTP Redirect" parameter to the name of the unzipped folder (here: Maintenance) and the "Status Code" to "Temporary (307)".
- Check the "redirect requests to this destination" checkbox.
- Hit the "Apply" button.
- Do not forget to uncheck the checkbox (and hit "Apply") when the server is back up and running!