Forum Discussion
John_Comstock
Nimbostratus
Sep 13, 2006iRule for URL Re-write
I have a requirement to rewrite the URL that external business partners connect to for both HTTP and HTTPS (will terminate SSL on the BigIP) traffic to forward to internal web sites. Can anyone direct...
John_Comstock
Nimbostratus
Sep 14, 2006Hi,
Thank you for the feedback. Our external business partners for these applications connect to our enterprise network via dedicated circuits, frame relay or Internet VPN connections and some of the applications are available via the Internet. They all in an externaldomain. Lets call it external.com. Some of the apps require a reverse proxy. Our old reverse proxies terminated ssl. We have bigips deployed to load balance web servers for some apps and to load balance traffic across some proxy appliances. We need to translate the host portion of the URL and forward the connection to the proxy appliance which will log the session and set up connections to multiple back end applications.
Redirects wont be feasible because the client would then try to resolve our internal domain and our external business partners don't have that access.
I was thinking of something like this..
when HTTP_REQUEST {
if { ( [HTTP::host] equals "myservices.external.net" ) } {
HTTP::header replace Host "myservices.internal.net"
}
if { ( [HTTP::host] equals "myservices2.external.net" ) } {
HTTP::header replace Host "myservices2.internal.net"
}
}
Is there a better way of doing the translation so that I wouldnt have to add another if then statement for each new app?
-John
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