Forum Discussion
tim_pearson_938
Nimbostratus
Oct 10, 2008fooling 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
- hoolio
Cirrostratus
Yep. Spark mentioned a while back that you can use 'HTTP::header is_redirect' instead.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects