Forum Discussion
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!
- nitass
Employee
can you post the https virtual server configuration? - LyonsG_85618
Cirrostratus
ltm virtual VS_S1P_PD03_EXTERNAL_LIVE_HTTPS { - nitass
Employee
the configuration and irule look okay to me. is this only virtual server the irule is applied? - LyonsG_85618
Cirrostratus
Hi Nitass - LyonsG_85618
Cirrostratus
Update: - LyonsG_85618
Cirrostratus
Although iRule is now working fine on both HTTP and HTTP virtual servers I have found a slight issue. - nitass
Employee
I am guessing it is something to do with the other irules i have - but just wondered whether anyone had seen something like this previously? can you post the irule? - LyonsG_85618
Cirrostratus
I think this is the relevant part of irule
Recent Discussions
Related Content
* 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