Forum Discussion
Charlie_Cliffor
Nimbostratus
Dec 07, 2009http 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
- The_Bhattman
Nimbostratus
Hi Charlie,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::uri /cognos84 } if { [HTTP::uri] starts_with "/cognos8/" } { set uri [HTTP::uri] HTTP::uri /cognos84/[string range $uri 9 end] } pool $::cognos_pool }
- hoolio
Cirrostratus
It might also be worthwhile troubleshooting why using a standard HTTP profile is slow. There shouldn't be significant slowness with the HTTP profile. You could open a case with F5 Support to get help doing this. - spark_86682Historic F5 Account
Posted By hoolio on 12/07/2009 8:34 AM
- spark_86682Historic F5 Account
I understand that fasthttp only supports limited irule functionality. However is it possible to modify this redirection irule to work using the fasthttp profile ?
- The_Bhattman
Nimbostratus
I do want to point out that it does except an irule with the HTTP::uri but as Spark as noted it's possible that it allows the acceptance of inserting the irule, but really doesn't work when executed. I noticed this in v9.x code. Not sure if the game has changed on version 10.x - Charlie_Cliffor
Nimbostratus
Hi, - Carl_Brothers
Employee
Curious about your deployment. Is this a particular module of Cognos or the core product? We are about to begin using the TM1 Web set up and lets just say there is a dirth of info available from IBM or the installation partner.
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