Forum Discussion
Collums
Apr 24, 2018Nimbostratus
How to apply X-Forwarded-Proto https to specific client
We are migrating to a new set of web servers and I am wanting to re-use the existing F5 configuration, same WIP, VIPs, and SSL profile. I figured this would be as simple as creating a pool for the ne...
Leonardo_Souza
Apr 25, 2018Cirrocumulus
See these pages, as they have all information about what you need:
https://devcentral.f5.com/wiki/irules.class.ashx
https://devcentral.f5.com/wiki/irules.http__header.ashx
You need a datagroup to define the users IPs for the new service, and to add the header. Something like this, not tested, just copied from those solutions:
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals "localusers_dg" ] } {
HTTP::header insert "X-Forwarded-Proto" "https"
}
}
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