Forum Discussion
zafer
Nimbostratus
Jun 14, 2009Rewrite with pool
Hello
im using this irule but it based on spesific uri how can i do with pool
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/deneme_gui/static_content" } {
set new_uri [string range [HTTP::uri] 26 end]
HTTP::uri $new_uri
HTTP::redirect http://172.16.3.2$new_uri
set rewrite_response 1
} else {
pool http_pool
set rewrite_response 0
}
}
i want replace pool with 172.16.3.2
regards
zafer
1 Reply
- hoolio
Cirrostratus
Hi Zafer,
Can you clarify what you're trying to do? Which requests are you wanting to redirect and which are you wanting to send to a pool?
Also, the HTTP::uri command in your example wouldn't have any effect because you're sending an HTTP redirect to the client immediately afterwards. The HTTP::uri rewrite of the URI would only be useful when sending the request to a pool.
Aaron
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