Forum Discussion
Luis_Pablo_1189
Dec 18, 2013Nimbostratus
Pool member FQDN on server side, Virtual server name on client side web browser
Hi everyone!
I am having a hard time trying to find/figure-out an iRule that sends the FQDN (http://poolmem1.domain.com) to the selected pool member just on the server side, leaving the Virtual serve...
Thomas_Gobet
Nimbostratus
Hi,
In your iRule you have to use HTTP_RESPONSE event to match traffic coming from your webserver.
Your iRule will be like that :
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "vserver.domain.com"} {
HTTP::header replace Host "poolmem1.domain.com"
}
}
when HTTP_RESPONSE {
if { [string tolower [HTTP::host]] equals "poolmem1.domain.com"} {
HTTP::header replace Host "vserver.domain.com"
}
}
Luis_Pablo_1189
Dec 18, 2013Nimbostratus
Hi Thomas,
thanks for your answer. I tried to create the iRule, but I got this error:
error: /Common/iRule_Portal_SAP_DevCentral1:7: error: [command is not valid in current event context (HTTP_RESPONSE)][HTTP::host]
Any clue?
Luis
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