F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Tom_G__134358's avatar
Tom_G__134358
Icon for Nimbostratus rankNimbostratus
Dec 09, 2013

Sorry page with LTM+APM

Hi,

 

I've been using the iRule in the Automatic maintenance page sorry page with images post successfully for sites that are using LTM only.

 

I'm now trying to integrate it with sites running an APM access policy (namely OWA). Right now, without an iRule, when the servers are down, I get the APM portal form, then after logging in I get an error page from the browser.

 

Based on the HTTP event order - Access Policy Manager article, it looks as if the flow changes when APM is added to the application.

 

I tried to adapt the iRule by setting a flag in LB_Selected if the number of active servers in the pool was < 1, then sending the sorry page content in the HTTP_RESPONSE event, but it failed (no error message...)

 

Any idea on how to achieve that ?

 

Thanks !

 

Tom

 

1 Reply

  • Are you using the linked iRule exactly, or have you modified it? As it stands the [active members ] check and HTTP::respond commands in the HTTP_REQUEST event should completely preempt the access policy. At the very least, if you still wanted to go through the access policy before showing the maintenance page, you could change HTTP_REQUEST to ACCESS_ACL_ALLOWED, and HTTP::respond to ACCESS::respond. The ACCESS_ACL_ALLOWED event and ACCESS::respond command are relatively synonymous with the respective HTTP event/commands but are guaranteed to fire after the policy has completed.