Forum Discussion
praveen_73358
Feb 11, 2011Nimbostratus
HTTP/1.1 response from F5 for HTTPS VIP
Dear All,
We have a F5 with version IP 10.0.1 Build 378.0 Hotfix HF3.
I need HTTP/1.1 response from the F5 with 502 code for a HTTPS VIP.
We have tried the below iRule using SSL::respond:
when LB_FAILED { SSL::respond "HTTP/1.1 502 Bad Gateway\r\nServer: BigIP\r\nConnection: close\r\nContent-Length: 0\r\n\r\n" }
However the desired output was not obtained.
As per the previous updates above I see that this should work in version 10 as per below discussion:
http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/afv/topic/aff/5/aft/60438/Default.aspx
Can anyone update if there is any issue with the iRule we tested.
Thanks,
Praveen
- hooleylistCirrostratusDo you have a client SSL profile added to the virtual server? If so, you can use HTTP::respond instead of SSL::respond. The syntax should be about the same. Also, make sure to use \r\n as this is the delineator for HTTP headers.
- praveen_73358NimbostratusHi,
- hooleylistCirrostratusHi Praveen,
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