Forum Discussion
gbbaus_104974
Sep 19, 2011Historic F5 Account
How can I Change IP Address references to FQDN references
Hi Guys
I am trying to use the STREAM command to replace the IP Address of the Virtual Server, with a FQDN (and vice versa)
I have Enabled streams on the Virtual server, and well as e...
hooleylist
Sep 19, 2011Cirrostratus
Hi Gary,
When you add the stream profile to a virtual server with an HTTP profile, the rewriting only applies to the HTTP request and response payloads. You can selectively enable the stream profile from an iRule using STREAM::enable|disable. To rewrite HTTP request or response headers, you can use 'HTTP::header replace $header $new_value'.
Make sure to enable the stream filter after you set the stream expression:
STREAM::expression {@mysite.lab.com@172.16.20.34@}
STREAM::enable
For full feature HTTP proxying, check the ProxyPass iRule:
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