puluck
Sep 04, 2014Cirrus
Http header
Hi All,
I wanted to insert http header on URL for backend server selection .So if XYZ.abc.com is URL and if the traffic hits the F5,it should insert header of backend server ,say server 1 ,so re...
do you mean you want to select server and insert http header based on hostname in url (host header)?
if yes, you can check host header using HTTP::host and insert header using HTTP::header command.
HTTP::host
https://devcentral.f5.com/wiki/iRules.http__host.ashx
HTTP::header
https://devcentral.f5.com/wiki/irules.http__header.ashx
if there are multiple hostnames, you may store them in data group and search it using class command.
class
https://devcentral.f5.com/wiki/irules.class.ashx