Forum Discussion
14 Replies
Sort By
- Richard_JonesNimbostratusYou can return html content directly from an iRule:
- hooleylistCirrostratusSorry, 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_71837NimbostratusI need to do something similar but the http conversion would be a two step process
- hooleylistCirrostratusHi pgroven,
- pgroven_71837Nimbostratusas shown above the 200 response will come first
- hooleylistCirrostratusIs 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_71837Nimbostratusthis 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.
- hooleylistCirrostratusHi pgroven,
- pgroven_71837NimbostratusSometimes I use the following simple irule