victor_Fondevil
Feb 26, 2014Nimbostratus
present http page without rewriting client headers
Hi, I'm fairly new on F5 Loadbalancers so excuse me if the question is dumb.
I'm trying to make an iRule that reads Host header searching for www.domain.com/foosite and if it matches, send to another pool (LAMP_Server) which have a wordpress listening on notification.domain.com and present the HTML page notification.domain.com/foosite without changing client's navigator URL (www.domain.com/foosite)
The only way I could do it was rewriting Host header so changing the client navigator URL.
when HTTP_REQUEST {
log local0. "Request: [HTTP::host]"
if { [HTTP::uri] contains "foosite" } {
HTTP::header replace Host notifications.domain.com
pool LAMP_Server
}
}
when HTTP_RESPONSE {
log local0. "Response:"
foreach aHeader [HTTP::header names] {
log local0. "$aHeader: [HTTP::header value $aHeader]"
}
}
Do you can help me??
Greets