ProxyPass v10/v11
Problem this snippet solves: iRule to replace the functionality of Apache Webserver ProxyPass and ProxyPassReverse functions. Allows you to do hostname and path name modifications as HTTP traffic pa...
Published Mar 18, 2015
Version 1.0Kirk_Bauer_1018
Nimbostratus
Joined November 08, 2006
Kirk_Bauer_1018
Nimbostratus
Joined November 08, 2006
Jason_Adams
Feb 27, 2019Employee
@Hariharan_Padmanabhan:
If you are using this ProxyPass iRule, Please see Comment 5 in the instructions:
5) ProxyPass does not rewrite links embedded within pages by default, just
headers. If you want to change this, edit the $static::RewriteResponsePayload variable in RULE_INIT
and apply the default stream profile to the virtual server.
Data Group Information
For 10.0.x, you must define an external data group (type=String, read-only) which loads
from a file on your BIG-IP. For 10.1 and higher you can use an internal string data group with name=value pairings.
The format of the file is as follows:
"clientside" := "serverside",
or
"clientside" := "serverside poolname",
The clientside and serverside fields must contain a URI (at least a "/") and
may also contain a hostname. Here are some examples:
"/clientdir" := "/serverdir",
"[www.host.com/clientdir"](//www.host.com/clientdir) := "internal.company.com/serverdir",
"[www.host.com/"](//www.host.com/) := "internal.company.com/serverdir/",
If you are creating your own iRule, then you may want to start by reviewing the
STREAM::
commands here STREAM.