Forum Discussion
dabance
Sep 26, 2019Altocumulus
maintenance page based on URL
Hello, Could you help with below requirement for an irule I would like to redirect to a maintenance message based on URL like below. (http vs https) if url is "http://www.xyx.com...
Sep 26, 2019
Hi dabance,
As I understood, you use only one ssl virtual server with port 8080 and you want to response for http requests with port 8080.
Firstly, you should to enable Non-SSL Connections in Client SSL Profile.
After you can use this iRule:
when CLIENTSSL_HANDSHAKE {
set https_state 1
}
when HTTP_REQUEST {
if { ![info exists https_state] } {
HTTP::respond 200 content "The site is under maintenance"
}
}
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