Charlie_Cliffor
Dec 07, 2009Nimbostratus
http vs fasthttp profile using irules
Hi,
I have created a simple URI redirection irule to an application website, which works fine using the Standard VS with the http profile.
However the VS to which is needs to be applied is currently using a Performance (HTTP) VS with a fasthttp profile.
fasthttp is used for performance reasons as website access is slow rendering images when using the http profile.
When I try to apply the following irule using a fasthttp profile, it produces the following error.
HTTP::redirect in rule (xxxxx) requires an associated HTTP profile on the virtual server (xxxx)
I understand that fasthttp only supports limited irule functionality. However is it possible to modify this redirection irule to work using the fasthttp profile ?
when RULE_INIT {
Setup initial global variables
set ::cognos_pool "COGNOS-POOL1"
}
when HTTP_REQUEST {
if { [HTTP::uri] eq "/cognos8" } {
set uri [HTTP::uri]
HTTP::redirect "http://[HTTP::host]/cognos84"
}
if { [HTTP::uri] starts_with "/cognos8/" } {
set uri [HTTP::uri]
HTTP::redirect "http://[HTTP::host]/cognos84/[string range $uri 9 end]"
}
pool $::cognos_pool
}
Many Thanks
Charlie Clifford