Forum Discussion
Karthick_01_150
Nimbostratus
Apr 22, 2014IRULE for API related configuration
We have webserver in our environment and application hosted in our internal webserver, we have provided the API services from our internal APP server.
The traffic flow as below
Client initi...
nitass
Employee
Apr 22, 2014can't we use HTTP::host?
HTTP::host
https://devcentral.f5.com/wiki/iRules.http__host.ashx[root@ve11a:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
log local0. "\[HTTP::host\]=[HTTP::host] \[HTTP::uri\]=[HTTP::uri]"
}
}
[root@ve11a:Active:In Sync] config tail -f /var/log/ltm
Apr 21 22:10:30 ve11a info tmm[13593]: Rule /Common/qux : [HTTP::host]=xyz.com [HTTP::uri]=/user/main.html
Apr 21 22:10:49 ve11a info tmm1[13593]: Rule /Common/qux : [HTTP::host]=abc.com [HTTP::uri]=/user/main.html
Apr 21 22:10:56 ve11a info tmm[13593]: Rule /Common/qux : [HTTP::host]=cde.com [HTTP::uri]=/user/main.html
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