Forum Discussion
how to change https header response using irule
Did you look at the example in the deployment guide as I suggested ? It shows the Stream profile replacing TWO ServerIP's with the big-ip's VirtualIP.
http://www.f5.com/pdf/deployment-guides/iapp-weblogic-dg.pdf
To create a new Stream profile
- On the Main tab, expand Local Traffic, and then click Profiles.
- On the Menu bar, select Other, and then click Stream. The Stream Profiles screen opens.
- Click the Create button. The New Stream Profile screen opens.
- In the Name box, type a name for this profile. In our example, we type wls-stream.
- In the Target row, click the Custom box, and then use the following syntax to type the target:
@@@@@@
In our example, we type:
@web0.weblogic10.example.com:7041@web.weblogic10.example.com@@web1.weblogic10.example.com:7041@web.weblogic10.example.com@
In this example, we are searching for the host name "web0" and "web1", and replacing it with the host name of the virtual server "web" created by the template.
The second search and replace pattern (following the @@) is for our second WebLogic Server. 6. Click the Finished button.
However, I still highly recommend you fix the Apache server, so the Hostnames are redendered properly:
http://tomcat.apache.org/tomcat-6.0-doc/config/host.html
-Chris.
- zenato_141472Jan 21, 2014
Nimbostratus
hi chris, i already found how to solve my issue. i used irules and stream profile like below : when HTTP_REQUEST { Disable the stream filter for all requests STREAM::disable } when HTTP_RESPONSE { Check if response type is text if {[HTTP::header value Content-Type] contains "text"}{ Replace IP addresses in response content with the string: 10.251.227.231 STREAM::expression "@10.251.227.1@10.251.227.231@ @10.251.227.2@10.251.227.231@" Enable the stream filter for this response only STREAM::enable } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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