Forum Discussion
alex100
Cirrostratus
Jun 21, 2016Help with maintenance page iRule needed
Hi all,
I am working on migration of static maintenance page from stand alone web server to Big-IP. I am sucessfully using iRule below to compile a static page using content uploaded to iFile.
...
Yann_Desmarest
Cirrus
Jun 21, 2016Hi,
you can change some part of your code as below :
default {
if { [HTTP::path] eq "/companyA" } {
HTTP::respond 200 content [ifile get index2.htm] "Content-Type" "text/html"
} else {
HTTP::respond 200 content [ifile get index.htm] "Content-Type" "text/html"
}
}If you have several uri to include, you can use a datagroupv:
default {
if { [class match [HTTP::path] URI_DATAGROUP] } {
HTTP::respond 200 content [ifile get index2.htm] "Content-Type" "text/html"
} else {
HTTP::respond 200 content [ifile get index.htm] "Content-Type" "text/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
