LyonsG_85618
Jul 31, 2013Cirrostratus
HTTP::header replace problem
Hi folks.
I have a simple iRule to replace a host & uri
when HTTP_REQUEST {
set requestedHost [string tolower [HTTP::host]]
set requestedURI [HTTP::uri]
if {($requestedHost equals "test1.domain.com") and ($requestedURI equals "/")} {
HTTP::header replace Host "test2.domain.com"
HTTP::uri "/some/other/uri"
}
}
This iRule work like a charm on my HTTP virtual server. However when I assign it to the HTTPS virtual server I get the following error:
- Operation not supported (line 4) invoked from within "HTTP::header replace Host "test2.domain.com""
There are other irules on the virtual server that control routing to pools based on various external class files however I am not sure how they woluld be causing the issue I am seeing /
The same irules are assigned to both HTTP & HTTPS virtual servers.
Any ideas?
Thanks in advance for your help!