Forum Discussion
Doran_Lum_13484
Nimbostratus
Sep 04, 2017X-Forwarded for https
Hi all, we have an application on our server which can't determine if the request is https or http coming from F5. X-Forwarded option have been enabled but the issue still persist. Should
I hav...
oscarnet_69487
Nimbostratus
Sep 04, 2017HI
you miss
} in end
when HTTP_REQUEST {
if { [ssl::mode] == 1 } {
if {!( [HTTP::header "x-Forwarded-Proto" ] eq "https") }{
HTTP::header insert x-Forwarded-Proto "https"
}
if {!( [HTTP::header exists "x-Forwarded-Port" ]) }{
HTTP::header insert x-Forwarded-Port [TCP::local_port]
}
}
}
have a good day!!!
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
