Forum Discussion

Iain_Conochie_8's avatar
Iain_Conochie_8
Icon for Nimbostratus rankNimbostratus
Jan 10, 2006

Choose Pool based on http headers

Morning People,

 

 

I have a single Virtual Server that will have multiple websites accessing it. I need to be able to split these websites based on HTTP_HEADERS

 

 

e.g.

 

 

10.100.5.10:80 is virtual server

 

 

If the domain is www.foo.com then forward to pool_foo

 

 

If the domain is www.bar.com then forward to pool_bar

 

 

Thanks in advance

1 Reply

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    This would be a relatively simple rule that looked something like:

    
    if (http_host eq "www.foo.com") {
      use pool foo_pool
    }
    else if (http_host eq "bar.com") {
      use pool bar_pool
    }

    HTH,

    -Colin