Forum Discussion
Albert__Tase_70
Nimbostratus
Mar 13, 2009http header inserts
I need the following irules to erase the icomming header and then insert.
when HTTP_REQUEST {
if {[HTTP:header]exists remove it and insert the following
HTTP::header insert HTTPS off
HTTP::header insert X-Forwarded-Proto http
}
when HTTPS_REQUEST {
if {[HTTPS:header]exists remove it and insert the following
HTTP::header insert HTTPS on
HTTP::header insert X-Forwarded-Proto https
}
is this do able and if so how ?
Thanks
1 Reply
- Deb_Allen_18Historic F5 AccountHTTP::header wiki page: Click here
To replace existing headers, useHTTP::header replace ...
To remove one header then insert another, useHTTP::header remove ... HTTP::header insert ...
To remove multiple instances of the same header, see the 2nd example.
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