Forum Discussion
mindprint_15295
May 16, 2014Nimbostratus
Got it working with following code:
when HTTP_REQUEST {
set active_pool_name "main_site_pool"
set actual_host_name "www.example.com"
if {[matchclass [HTTP::host] eq static_content_route_class ]} {
pool "$active_pool_name"
HTTP::header replace Host "$actual_host_name" }
}
Is there a better solution?