Forum Discussion
hatim1
Aug 24, 2011Nimbostratus
mapping an external FQDN name to an Internal FQDN one
Hi all,
I am trying to map an external FQDN name to an internal FQDN (not known externally) using an irule. Due to this fact I am changing the host name in the irule and sending the request ...
hooleylist
Aug 24, 2011Cirrostratus
Hi Hatim,
I assume the web app uses absolute references to the internal hostname in response headers and/or content. You can use HttpFox for Firefox or Fiddler2 to check the responses to see where the references are. To rewrite response headers like the Location in redirects, you can use HTTP::is_redirect and HTTP::header replace. For the response payload, you can use a blank stream profile and STREAM::expression iRule.
Here are a few related links:
http://devcentral.f5.com/wiki/iRules.http__is_redirect.ashx
http://devcentral.f5.com/wiki/iRules.http__header.ashx
http://devcentral.f5.com/wiki/iRules.stream__expression.ashx
Or you could use the ProxyPass iRule for this:
http://devcentral.f5.com/wiki/iRules.proxypassv10.ashx
Aaron
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