Forum Discussion
Deekdeek_103899
Feb 28, 2011Nimbostratus
Newbie mantenance page based on IP address
Hi Im new to F5 world. what i want to do for our maintenance page that redirects all except a certain IP address specified to a site down page. so something like this only IP a...
Deekdeek_103899
Mar 01, 2011Nimbostratus
Great stuff i made some little changes but this seems to work. Now i wanted to add 400,500 error redirects to this, should i incorporate into the same irule ? how would i include those?
when HTTP_REQUEST {
if { ![matchclass [IP::client_addr] eq M_Page] } {
if { not ([string tolower [HTTP::uri]] starts_with "/imageserver") } {
HTTP::redirect "https://xxx.xxxx.xxx/imageserver/ServiceUnavailable.html"
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects