Forum Discussion

zafer's avatar
zafer
Icon for Nimbostratus rankNimbostratus
Jun 15, 2009

Rewrite 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

  • 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