Forum Discussion
Passing on url in header to LB Pool.
Hi,
With out current setup we have varnish servers that will treat traffic differently depending on what url is received in the header from the client making the request.
These are being moved over to the BIG-IP's now and I need the LTM to pass on this info to the varnish servers.
What would be the best way to accomplish this?
4 Replies
- JG
Cumulonimbus
Can you be more specific about your requirement? An existing Vanish rule would help.
I need to pass the url the client is visiting to the backend servers in the header.
needs to be passed on to the pool member.
- Leonardo_Souza
Cirrocumulus
Create an iRule, and add a custom header. Use the "HTTP::header insert" option. this link has explanation and examples:
https://devcentral.f5.com/wiki/irules.http__header.ashx
- Leonardo_Souza
Cirrocumulus
The pool members will see , that does not change automatically. The destination (and if necessary, the destination port) will be translated to the server IP address, and translated back in the response when passing the F5 unit.
Here is the output of a quick tests I did.I ran the command
, in a pc with an entry in the host file to point that name to the F5 virtual server.I ran a tcpdump in the back end server, and opened the capture with wireshark.curl --http1.1 http://www.example.com/Frame 4: 145 bytes on wire (1160 bits), 145 bytes captured (1160 bits) Ethernet II, Src: Vmware_df:04:b9 (00:0c:29:df:04:b9), Dst: Vmware_82:67:2f (00:0c:29:82:67:2f) Internet Protocol Version 4, Src: 10.0.0.32, Dst: 172.16.0.11 Transmission Control Protocol, Src Port: 60618, Dst Port: 80, Seq: 1, Ack: 1, Len: 79 Hypertext Transfer Protocol GET / HTTP/1.1\r\n Host: www.example.com\r\n User-Agent: curl/7.50.1\r\n Accept: */*\r\n \r\n [Full request URI: http://www.example.com/] [HTTP request 1/1] [Response in frame: 6]
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
