Forum Discussion

tim_pearson_938's avatar
tim_pearson_938
Icon for Nimbostratus rankNimbostratus
Oct 10, 2008

fooling a client and the server

I am trying to get an iPhone to connect to our iNotes server and neither are playing nice. I think I can fool it by using the F5. My issue is that the iNotes server will not accept an IP address as a valid host. I have been trying to get the F5 to rewrite the URL, but am having issues

iPhone ----http://10.10.2.20 -->F5 ---http://mail.domain.com--->inotes server

What I have so far:

when HTTP_REQUEST {   
         Check if requested host is an IP address   
      if {[HTTP::host] eq "10.10.2.20"}{   
            Rewrite HOST   
         [HTTP::host] "mail.domain.com"   
      }   
      pool Test_iNotes_pool  
   }  
  when HTTP_RESPONSE {   
       Check if response is a name   
      if {[HTTP::host] eq "mail.domain.com"}{   
            Rewrite return HOST   
         [HTTP::host] "10.10.2.20"   
      }   
  }

edited, because I forgot to anonymize

11 Replies