Forum Discussion
Jean_42123
Nimbostratus
May 11, 2010iRule - HTTP Request Redirection - HELP
Hi Guys,
I am really frustrated and i would like your help to complete the below script.
The target of the script is to check a list of URI. In case of any match with the list, we would like to redirect the HTTP request to our pool of proxy servers. if not, we would like to redirect the request directly to the internet.
Below is part of the script I need your help to complete the missing part mentioned below:
your prompt reply is highly appreciated.
Thank you
Jean
when HTTP_REQUEST {
if {[HTTP::uri] contains "http://wap.hungama.com/" } {
pool proxy-pool
} else { missing part}
}
- Michael_Yates
Nimbostratus
Hi Jean,when HTTP_REQUEST { if { [HTTP::host] equals "wap.hungama.com" } { pool desired.server.pool } else { HTTP::redirect "http://www.google.com" } }
- Jean_42123
Nimbostratus
Hi Michael, - Michael_Yates
Nimbostratus
Correct. - Jean_42123
Nimbostratus
Hi Michael, - Jean_42123
Nimbostratus
Any luck ??? - Jean_42123
Nimbostratus
Matt, - L4L7_53191
Nimbostratus
A couple of things may be going on. Do you have a SNAT associated with this virtual server by chance? If not, that may be worth a try. Pay close attention to the source IP of the request along the path and be sure that at some point it'll be translated correctly as it goes out into the wild. If your requests are timing out, is it possible that you've got private, non routable source addresses going outbound? Do your proxies source the traffic differently? If so, how? - Jean_42123
Nimbostratus
Matt, - zekky_101290
Nimbostratus
I had a look at the config. This VS is listening on port 8080. The forward statement in irule will not do port translation by default.
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