Forum Discussion
puluck
Cirrus
Sep 04, 2014Http 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...
nitass
Employee
Sep 04, 2014do 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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