Forum Discussion
RyanF5_169352
Nimbostratus
Jul 28, 2015X-Forwarder to redirect external access to webpage to https
I'm definitely new to irules and codes so bare with me. I'm trying to come up with an irule in the LTM that will allow me to have internal clients to a webpage clear text(http), while redircting exte...
Kevin_Stewart
Employee
Jul 28, 2015Try
if { not ( [class match $xff equals private_net] ) } {
HTTP::redirect "https://[getfield [HTTP::host] ":" 1][HTTP::host]"
}
So curiously, are you always going to get an XFF header in the request? What would you do if you didn't?
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