Forum Discussion
HTTP_REQUEST and HTTP::redirect and HTTP::respond with if condition and source IP
YES, http://ecr.host.com.qa & https://ecr.host.com.qa both are VIP. Basically I was not able to make iRule to reach HTTP request or Client accepted for SSL (https) thats why I am trying these for the http content and then forwarding to the https
by my final aim is to write iRule for https traffic and as per source IP and content in URI, I have to select the pool.
if you say the above statement then I tried the code below but still the same log.
switch -glob [string tolower [HTTP::path]] { "/use1/*" { log local0. "Catch-1 use1 to use - redirecting" HTTP::redirect "https://google.com/" }
and in mozilla I am being successfully forwarded to google.com
Jul 10 21:36:37 tmm info tmm[7008]: Rule /DMS_Prod/test_i_Rule_ECR_2 : Client (176.203.127.247%1701) is requesting: /use1/ Jul 10 21:36:37 tmm info tmm[7008]: Rule /DMS_Prod/test_i_Rule_ECR_2 : Client IP match Jul 10 21:36:37 tmm info tmm[7008]: Rule /DMS_Prod/test_i_Rule_ECR_2 : Catch-1 use1 to use - redirecting
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