Forum Discussion
JohnL_247646
Nimbostratus
Feb 03, 2016Need help with Cisco ACE header rewrite to irule
I need some help doing this conversion from Cisco Ace to iRule. There is a header request that convert the users URL request from "hostA.companyA.com/whatever/comes/after" replace "host1.companyA.co...
JohnL_247646
Nimbostratus
Feb 05, 2016I modified that a bit in my testing enviroment
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "lb.abc.com" } then {
HTTP::header replace Host "10.10.192.111"
}
}
when HTTP_RESPONSE {
if { [string tolower [HTTP::header value Location]] starts_with "http://" } then {
HTTP::header replace Location "https://lb.abc.com[getfield [HTTP::header value Location] ":80" 2]"
}
}
Not working and keep getting this in the ltm log.
error: [undefined procedure: HTTP::Location][HTTP::Location]
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