Forum Discussion

Mike_Wethington's avatar
Mike_Wethington
Icon for Nimbostratus rankNimbostratus
Jun 19, 2009

Pool redirect of www.domain.com

I need to send traffic for a domain to a certain pool but only if it contains just the fqdn i.e. http://www.domain.com. Can someone give me a little bit of help on this? Thanks in advance for your support.

3 Replies

  • When you say "just the fqdn" do you mean when the URI is blank (/) or whenever that domain is requested regardless of the URI?

    If the former, then

     
     when HTTP_REQUEST { 
       if { ([HTTP::host] eq "www.domain.com") && ([HTTP::uri] eq "/") } { 
          pool pool1 
       } 
     } 
     

    Otherwise, just looking at the HTTP::host should suffice.

    Denny
  • You could also use an HTTP class to filter based on the host header and/or URI in 9.4 or higher.

     

     

    Aaron