Forum Discussion
Telise_Mays_208
Nimbostratus
May 11, 2017Static Maintenance Page
I am trying to create a https VIP on the ltm that will always return a Static Maintenance Page using iFile. I don't want the VIP to have pool members. I just want the VIP's sole purpose to be respo...
May 12, 2017
Sounds like you're missing a clientssl profile or forgot to enable automap. See below a working example from my lab environment.
Virtual Server:
ltm virtual vs_html_static_page {
destination 10.23.98.13:https
ip-protocol tcp
mask 255.255.255.255
profiles {
clientssl-insecure-compatible {
context clientside
}
http { }
tcp { }
}
rules {
A_IRULE_STATIC_HTML_PAGE
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-address enabled
translate-port enabled
vs-index 219
}
irule:
ltm rule A_IRULE_STATIC_HTML_PAGE {
when HTTP_REQUEST {
set html [ifile get "/Common/static_html_page"]
HTTP::respond 200 content $html
unset html
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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