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
May 30, 2007Hi,
I have had to revisit this solution after some delays in testing and shifting priorities. The iRule above worked very well to swap the host in the HTTP header but our proxies need a different format.
Our vendor partners will connect to our BigIPs using
https://sitename1.externaldomain.net/VendorSite
We are terminating ssl (and not re-encrypting) on the bigips and need an iRule to rewrite the URL to change the host name to the internal host name.
We need to present the fqdn to the netcache proxy servers.
So for every get
https://sitename1.externaldomain.net/VendorSite
We need to translate the url and present the following to the proxy
https://sitename2.internaldomain.net/VendorSite
Most of the examples of URL rewrite are load balancing web servers.. which can handle the GET /foo with a host header field with no problem… but since we need to forward to a proxy server.. I will need a different rule. Can you please help?
Our Proxy servers don’t handle the following GET very well..
GET /VendorSite HTTP/1.1\r\n
Request Method: GET
Request URI: /VendorSite
Request Version: HTTP/1.1
Accept: */*\r\n
Accept-Language: en-us\r\n
Accept-Encoding: gzip, deflate\r\n
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)\r\n
Host: sitename2.internaldomain.net\r\n
Connection: Keep-Alive\r\n
\r\n
They are expecting
GET https://sitename2.internaldomain.net/VendorSite
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