Forum Discussion
dw_888_212625
Nimbostratus
Nov 06, 2015possible to add request headers in LTM
kindly advise how can we add the below 2 request headers to load balancer
x-forwarded-port https
4 Replies
- Renato
Altostratus
You can use the iRule method HTTP::header. Use it in HTTP_REQUEST event if you want to modify the data sent to server side, otherwise use in HTTP_RESPONSE to send to client side.
Example:
when HTTP_REQUEST { HTTP::header insert X-Forwarded-Port [TCP::local_port] } - dw_888_212625
Nimbostratus
Hi, im sorry, we are trying to achieve the following... x-forwarded-port https
- Renato_166638
Nimbostratus
You can replace [TCP::local_port] with any information, but I suppose that it expects a number. Aren't you talking about the X-Forwarded-Proto instead?
- Henrik_Gyllkran
Nimbostratus
Just create a custom http profile (or modify the existing one) and add "x-forwarded-port:https" to the Request Header Insert parameter.
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