Forum Discussion
Fletcher_Cocquy
Mar 19, 2010Nimbostratus
x-forwarded-host
Hi, we have our BigIP adding the x-forwarded-for header, but we have a new app with a new requirement for the x-forwarded-host header.
What is the recommended way to do this?
iRule?
If so, what would the iRule look like?
thanks
- hooleylistCirrostratusHi Fletcher,
- Fletcher_CocquyNimbostratusAre the "Header Insert" field entries space delimited?
- hooleylistCirrostratusI don't think you can insert multiple header name/values with an HTTP profile. There's probably a request for enhancement to support this. You could open a case with F5 Support to ask to have your case attached to the RFE.
when HTTP_REQUEST { Insert GOHTTPS and x-forwarded-host with corresponding values HTTP::header insert GOHTTPS 1 x-forwarded-host [HTTP::host] }
- Fletcher_CocquyNimbostratusHi, I did not want to combine the GOHTTPS with the x-forwarded-for - so I did:
- hooleylistCirrostratusHTTP::header insert accepts lists of header names and values, so this would insert GOHTTPS with a value of 1 and x-forwarded-host with a value of the HTTP host header value:
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