Forum Discussion
different Irule behaviour for HTTP_REQUEST vs LB_FAILED
Hi,
I have an irule which has a full webpage embedded within it (including an exceptionally long style tag).
when I trigger this iRule using
when HTTP_REQUEST {
then the full webpage is displayed... however if I only modify the first line to
when LB_FAILED {
The header information is picked up, style tag gets truncated and the rest of the webpage (the body)is not displayed.
Please advise what is causing this... am planning to test if same behaviour occurs if I use an iFile for the embedded webpage
Thanks
4 Replies
- Dan_123791
Nimbostratus
am on BigIP 11.3.0 Build 3093.0 Hotfix HF4 - Dan_123791
Nimbostratus
Just tried using an iFile and same behaviour observed...? Any ideas on this? sounds like a bug - Michael_Jenkins
Cirrostratus
Check out SOL9456. I think it may help answer your question. The Applies To only goes up to 11.4, so it me not be an issue on versions past that (in case you plan to upgrade).
- Dan_123791
Nimbostratus
Thanks Michael J, definitely this is some sort of bug but it does not work with the workarounds suggested
Finally landed up using advice from this link: https://devcentral.f5.com/questions/how-to-create-irule-to-deliver-an-alternate-page-response-other-than-page-unavailable
i.e. when HTTP_REQUEST { if {[active_members [LB::server pool]] < 1} { switch [HTTP::uri] { "/guardian_header.jpg" { HTTP::respond 200 content [ifile get "guardian_header_jpg"] } "/guardian_logo.jpg" { HTTP::respond 200 content [ifile get "guardian_logo_jpg"] } default { HTTP::respond 200 content [ifile get "maint_index_html"] } } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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