Forum Discussion
Putting in an answer rather than a comment on the thread since comments don't format the same way:
You are just changing the host header there (which you may need to do just depends on if the backend does anything with the host header) and assigning the request to a particular pool. Is it safe to assume that www.topquartile.com/en-us/blog/topquartile is a valid url and the pool members in pool_www.topquartile.com-http are the ones responsible for www.topquartile.com?
If so, I don't see anything wrong with that, but often of times there is a location redirect on blogs to what they think their name is. You'd have to intercept that and change it. You can log the response headers and see what it's sending.
when HTTP_RESPONSE {
log local0. "============================================="
foreach aHeader [HTTP::header names] {
log local0. "$aHeader: [HTTP::header value $aHeader]"
}
log local0. "============================================="
}
}
If you see a 301 or 302, you'll need to modify the location redirect in the response. String map is the easiest way to do that:
HTTP::header replace Location [string map {someurl anotherurl} [HTTP::header Location]]