Forum Discussion
Neeraj_Jags_152
Cirrus
Jul 10, 2014HTTP_REQUEST and HTTP::redirect and HTTP::respond with if condition and source IP
I have below iRule but it is not working as expected.
two statement working /oncfo1/ and /oncres1/ but /use1/ not forwarding & also if no condition match then else statement also not giving result. ...
Kevin_Stewart
Employee
Jul 10, 2014Ah, so if I understood you correctly, this iRule was on the HTTP VIP but not the HTTPS VIP? If so, can you for testing change the "https://ecr.host.com.qa" redirects to "http://ecr.host.com.qa". This should let you see the events for the "/use/" condition, and eliminate any of the confusion with potential SSL issues.
Also, just for testing, change the HTTP::respond to just send plain text (no text/xml Content-Type header):
HTTP::respond 200 content "IP is [IP::client_addr] and -oncres2-"
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