Forum Discussion
Mar 09, 2014
Hi Parveez
Without an HTTP profile you can't access layer 7, which means that manipulation of ie. uri and host is impossible in the load balancer.
In your case I would firstly attempt to find, and solve the problem in regards to the HTTP profiles (because you lose so much functionality in the F5 without it, ie caching, compression and layer 7 manipulations) or consider using some server-side manipulation, (apache or IIS rewrites) to serve the maintenance page no matter what URI is used (or trigger a redirect to the maintenance page).
With server side rewrites your original iRule should work:
when CLIENT_ACCEPTED {
if { [active_members [LB::server pool]] == 0 } {
pool maintenance_page
}
}
Good luck!
/Patrik