Forum Discussion
Tim_90553
Nimbostratus
Oct 17, 2008F5 as web server
Can the F5 serve a web page from it's local file system?
- Richard_Jones
Nimbostratus
You can return html content directly from an iRule: - hoolio
Cirrostratus
Sorry, wpskier, I updated the HTTP::respond wiki page with a bad example today. You can remove the trailing backslashes as they aren't needed with the outer curly braces:when HTTP_REQUEST { HTTP::respond 200 content { Apology Page We are sorry, but the site you are looking for is temporarily out of service If you feel you have reached this page in error, please try again. } }
- pgroven_71837
Nimbostratus
I need to do something similar but the http conversion would be a two step process - hoolio
Cirrostratus
Hi pgroven, - pgroven_71837
Nimbostratus
as shown above the 200 response will come first - hoolio
Cirrostratus
Is there a particular scenario that you want to enable the 204 response from the iRule? You can use the TCL clock command (clock format with clock seconds Click here) to get the current time in a specific format. - pgroven_71837
Nimbostratus
this irule will be implemented during a maintenance window so the cluster can recover quicker once it is started backup. - Colin_Walker_12Historic F5 AccountiRules are specified at the Virtual Server level, not at the pool level. You can certainly make the iRule only act on certain traffic, though.
- hoolio
Cirrostratus
Hi pgroven, - pgroven_71837
Nimbostratus
Sometimes I use the following simple irule
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