Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Maintenance page in AEM

Avatar

Level 4

Hi All ,

Can you please tell me some ideas how can we configure a maintenance page in AEM which is deployed in IIS server.
I got some blogs which refer to Apache server.

I understood the fact that we need to create a stand alone html page and redirect it to this page during 503 error or maintenance.
Please guide how we can add the rewrite rules for IIS server.

Thanks.

3 Replies

Avatar

Community Advisor

Hi You can host that page in server and handled it from dispatcher, You can check below if helps.

How to display maintenance page when AEM services are down?

Configuring Dispatcher

Specifying a Health Check Page

Use the /health_check property to specify a URL that is checked when a 500 status code occurs. If this page also returns a 500 status code the instance is considered to be unavailable and a configurable time penalty (/unavailablePenalty) is applied to the render before retrying.

1

2

3

4

5

/health_check

  {

  # Page gets contacted when an instance returns a 500

  /url "/health_check.html"

  }

Using the Failover Mechanism

Enable the failover mechanism on your Dispatcher farm to resend requests to different renders when the original request fails. When failover is enabled, Dispatcher has the following behavior:

  • When a request to a render returns HTTP status 503 (UNAVAILABLE), Dispatcher sends the request to a different render.
  • When a request to a render returns HTTP status 50x (other than 503), Dispatcher sends a request for the page that is configured for the health_check property.
    • If the health check returns 500 (INTERNAL_SERVER_ERROR), Dispatcher sends the original request to a different render.
    • If the healtch check returns HTTP status 200, Dispatcher returns the initial HTTP 500 error to the client.
To enable failover, add the following line to the farm (or website):

/failover "1"



Arun Patidar

Avatar

Level 4

Hi Arun ,

thanks for the response ,
I tried to do the same but it didn't work for me.

We would like display a page for planned or unplanned site outages so that visitors can be informed  why services are not available.

Situations which we can consider :

1)When the publisher/dispatcher is down.(planned -not available)

2)Unplanned activities like - suddenly it displayed 503 error due to some bundle issue/services

3)Sometimes JSP errors gives 500 internal server error ;for which jsp recompilation solves the issue -but we want to handle this situation as well.


Please guide me how can I achieve it.

Thanks,Pallavi

Avatar

Community Advisor

For 500 error you can try Customizing Pages shown by the Error Handler

Customizing the Response to HTTP 500 Errors

Thanks

Arun



Arun Patidar