Forum Discussion
Joe_Pawlicki_70
Nimbostratus
Jul 21, 2008Rewriting HTTP::host
At the risk of looking like a newbie, is this supposed to work?:
when HTTP_REQUEST {
HTTP::host "foo.bar.com"
HTTP::uri "/some_uri"
}
Darned if I...
Joe_Pawlicki_70
Nimbostratus
Jul 22, 2008Sure. Let's say your company has an app that connects to a web service from an external vendor. And you need to get to that app via "bar.foo.com/widget/some_uri". Now, your internal app server isn't on a routable IP address, so you'd like to go thru the F5, and have it proxy the communication with the external host. However, foo.com may have their own load balancing, or dns round-robin, or decide to change the ip address of host "bar" next week. Therefore, you can't have hard-coded ip address(es) as your pool member(s), or you'll have an outage every time they make a change. Therefore, you'd like to have the F5 resolve this host.domain - and preferably not cache it forever between restarts.
Again, I can't help but feel I'm missing something basic here. So thanks for bearing with me, and for any suggestions.
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